Hi,
Please let me know if you are still looking for help.
Thanks,
Hi,
Are you still facing the issue.
How are you sending the data in a ajax request?
And also, set the response content type at the correct place.
regards
Right… addRowData is too bad for the performance, even the IE browser throws script error to load just 400-500 records. But changing the datatype to local increase the performance and help in loading large no. of records.
Hi,
Change the datatype to JSON/XML, need to provide url as well. Examples already psoted on jqgrid site.
Thanks,
Hi,
Define the sortname,sortorder i.e. the column on which you want the default sorting. Then,
Change the datatype of the grid to local on the loadcomplete event of the jqgrid.
2nd option:
1. Fire a ajax call and get the data into a javascript array.
2. Define the jqgrid with datatype local and give the array constructed in step 1 as input to the grid.
3. Define the default sorting column and order
Thanks,
Hi,
I have resolved the issue. I made the sortable:false in the grid configuration to stop the column reordering. I enable the column reordering only through the column chooser.
Then, followed the help described on the following url-
http://stackoverflow.com/questions/8422878/persisting-jqgrid-column-preferences
Anyone can easily save the user preferences (e.g. sorting,paging,filter,ordering,column width,hidden and visible column) for the user's next visit.
Thanks,
Hi,
Add toolbar: [true:'top'] in the grid configuration to add the toolbar. Then you can add the dropdown to the toolbar using:
$('#t_').append('');
t_ is the id of the toolbar. As you have the id you can easily define the operations on the hover event.
grid_name is the id of the table that you want to convert into the jqgrid.
Thanks,
Hi,
ui-jgqgrid.css ->
.ui-jqgrid .ui-jqgrid-bdiv {position: relative; margin: 0em; padding:0; overflow: auto; text-align:left;}
comment overflow: auto
Work expected if you don't increase the size of column.
Hi,
You can give a try if you like it.
Hit the url and get the json response into a client array and pass this to your grid as input.
Thanks,
If you are still looking for answer, then you can use the jqgrid userdata feature. You can send additional data along with the grid data.
Way of retrieving it later using:
|
1 |
var data = jQuery("#grid").getGridParam('userData'); |
|
1 |
Then, data.something will give you the value against the key. |
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top