Hi,
Thanks for the saveState feature, it’s a big help. I’m having some issue though.
- For a lot of my use of jQgrid, I link out to an external form for editing. The problem is that when returning to the grid, and with a loadState, you load actual grid data from memory, so the changes just made (on the external form) don’t show. I resolved this by adding:
p = $(“#gridName”).getGridParam(‘page’);
$(“#gridName”).trigger(‘reloadGrid’,[{ page: p }]).trigger(‘resize’);
after loadState, and that fixes this issue. Wondering if instead I can save the grid state but not the grid data, so it loads via my jsonReader (or I’m voicing this as a feature request)?
- This issue I can’t resolve: After loading the saved grid, the grid name changes from
to
so none of my external functions to manipulate the grid work (I have a number of buttons around the grid that manipulate it like paging, etc.). Is there a solution to this one?
Also, thanks for the debug output. I had to dig into the jQgrid JS to figure this one out, so wanted to post it here, as I couldn’t find it documented:
— use: $.jgrid.saveState(“gridName”, {debug: true});
— then add:
Debug:
to you page, and you’ll get an option to download a text file with the grid state when you run the saveState method.
Thanks! These latest versions are great!
Walter