I\'m using the column reordering feature in jqGrid
$grid = jQuery(\"#list\").jqGrid({
sortable:true,
...
});
Is there an event that fir
The comment given by @msanjay is the best way of doing this and here is the code which worked for me.
var globalvar_sortingorder;
jQuery('#gridId').jqGrid({
.......
sortable: { update: function(relativeColumnOrder) {
var grid = jQuery('#gridId');
var columnOrder=grid.jqGrid("getGridParam", "remapColumns");
// columnOrder now contains exactly what's necessary to pass to to remapColumns
// now save columnOrder somewhere
globalvar_sortingorder=columnOrder;
}}
....
});
To restore the column order
if(getObjectFromLocalStorage("sortingorder")) {
jQuery('#gridId').jqGrid('remapColumns', globalvar_sortingorder, true, false);
}