where do i find the css for searchFilter?
i am using ui.jqgrid.css in theme folder with redmond theme
i also have another problem. if you see the code above for trnDate i use dataInit function to initialize a dateficker for the add/edit form.
the problem is now when i open the form the datepicker initializes automatically and opens up ( i think its to do with the field receiving focus )
another problem is, when i load the grid for the first time, the 'add form opens automatically by default without hitting add button in the navigator.
heres what i am doing to add a new row using editorGrid()
jQuery(”#listtrns”).jqGrid({
using 3.5 beta. unfortunately cant post a link; but heres the sample JSON data
{“page”:”1″,”total”:275,”records”:”137″,”rows”:[{“id”:”1283″,”cell”:[“1283″,”2009-10-31 00:00:00″,”payment”,”250.98″,”payment”,”out”,”BUCURR”]},{“id”:”1123″,”cell”:[“1123″,”2009-03-17 00:00:00″,”ticket”,”33.00″,”ticket”,”out”,”BCC”]},{“id”:”1119″,”cell”:[“1119″,”2009-03-17 00:00:00″,”Lunch”,”4.65″,”Lunch”,”out”,”CASH”]},{“id”:”1120″,”cell”:[“1120″,”2009-03-17 00:00:00″,”food”,”3.75″,”food”,”out”,”MCC”]},{“id”:”1121″,”cell”:[“1121″,”2009-03-17 00:00:00″,”gas”,”20.00″,”gas”,”out”,”MCC”]}]}
heres the javascript for the data.
jQuery(“#listtrns”).jqGrid({
Take a look in the docs under “New in version 3.2”>>Custom Button and Forms
This works for my need. Although I would have liked to find out how to get this custom form in the modal window.
But then again, there is a difference between need and desire 😉
heres what i want to do. i have a form with 3 input fields
1. Combo Box [A,B] values
2. Text Field A
3 Text Field B
I want that if A is selected from combo box Text Field A remains visible and if B then TextField B.
How do you do that with form that appears on clicking the 'Add Button' on the pager.
any example on having my own 'Form' to appear in the modal window for Add New Record button ( on the pager )
thanks for the reply, yes i do know i have to do jQuery(”#mygrid”).trigger(”reloadGrid”). my question was whether
jQuery(”#mygrid”).trigger(”reloadGrid”) and hitting the 'REFRESH' button on the pager do the same thing?
REFRESH button refreshes the GRID to page 1 ( incase if you are on say page 3 of 5)
jQuery(”#mygrid”).trigger(”reloadGrid”) just refreshes the current page and the same page is reloaded ( so if you are on page 3 of 5 you stay on page 3 )
checked it out. thanks. very neat.
there is a small bug as well in the search form. when you select a date field ( from the combo box ) and then click the text field the DatePicker appears
Then close the search form. The DatePicker is still visible and it shouldnt be.
I see you have added a few more filters. what about null and is not null?
dont cry buddy. you can use a simple export function to extract data from the grid using getDataIds and getRowData
you can then collate the data using jquery and send it to the server if you want or just present it as an html.
eg:
data=jQuery(listId).getRowData(ids)
html=html+data[colNames[j]]
voila.
thanks for the reply though.
i tried triggering a search on the second page but that doesnt seem to work.
i also tried, adding data to “postData” property and then triggering a search which doesnt seem to work either.
another thought i had was, to be able to have different subgrids for different columns ( which would probably and ideally be the best solution ). Dont know if its already possible or not.
eg: you can click on column 1 and use subgrid to retreive data based on the column1:row1 (cell1) data. You can then click on column2 :row1 ( cell2 ) to retrieve totally different set of data in the subgrid with a different subgrid column model.
cheers
A
cheers.
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top