I was able to use saveState to save it into local storage. Then I used a my custom loadState function to apply to only info I needed.
For example: I only needed to restore colModel, if user changes it by hiding or showing columns and sort order and sort name
What I did is set the use a custom getState function to get state from localStorage and apply colModel,sortname,sortorder before building the grid.
Thank you! we will test it out.
Just checking in to see if any progress on this
Thanks for the info. If I think of way, will report here.
Thank you for the reminder about using the latest dev code from github, my bad.
I have reverted back to released v5.3.0
ok. Thank you. I will disable the virtual scroll and just use the regular pager.
Thank you, that makes sense.
Just another issue, when autoPrint is set to true, the behavior is different in different browsers
Chrome / Opera – first time print dialog comes, if you cancel – second time clicking on print does not bring up print dialog
Firefox – works correctly.
I don’t have the label parameter in the colModel, but I have colNames – why is this not being used to name the columns when exported to html
I will try what you suggested – but it would be a better solution when data is not local – just to get the data and pass it as a parameter or better yet get the array data since it is already in the grid
var mydata = $('#mygrid').jqGrid('getGridParam','data');
Let me know what you think?
Here’s is the link to the issue
Click on the print – you will see column names are not taken from the colNames array and also print is blank
I will try to create a example,. incoming data format is xml
Checking in to see if you have any update on this
Thank you! that worked.
Ok – I will try to prepare a demo.
When grouping is enable – only the records on the page is exported . If not using grouping, then all records are exported.
Hope this helps.