You can use the "done" columnChooser event . Here is an example:
var grid = $("list"); grid.navButtonAdd( '#pager', {caption:"", buttonicon:"ui-icon-calculator", title:"Column choose", onClickButton: function() { grid.jqGrid('columnChooser', { "done": function(perm) { if (perm) { this.jqGrid("remapColumns", perm, true); }
UPDATED . If you define the sortable option as
sortable: { update: function (permutation) { alert("sortable.update"); } }
and not as sortable:true , you will be notified of a new column order. See jqGrid source code for more details. The permutation array with integers has the same meaning as in the remapColumns functions (see my old answer for details).
source share