Are the saveState and loadState functions supported with tree grids?
.
Visually they appear to work with loadState restoring the grid to its appearance at the time of saveState but after loading it is no longer possible to expand/collapse nodes and getLocalRow returns false
.
To test this I added save/load buttons to the onselect_event demo file
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
<body> <button id="emptygrid">Unload</button> <button id="savestate">Save Grid State</button> <button id="loadstate">Load Grid State</button> <table id="tree"></table> <div id="pager"></div> <div id="selection"> price:<span id="price"></span><br/> icon: <span id="uiicon"></span> </div> <script type="text/javascript"> jQuery(document).ready(function($) { $('#emptygrid').button().click(function() { emptygrid = $.jgrid.gridUnload("#tree"); console.log("empty grid"); }); $("#savestate").click(function(){ state = $.jgrid.saveState("tree"); console.log("savestate"); }); $("#loadstate").click(function(){ $.jgrid.loadState("tree"); console.log("loadstate"); }); jQuery('#tree').jqGrid({ ... |
MymsMan
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top