If I used remapColumns
in columnChooser
's done event, then I don't have problem to sort the columns. But when I moved
remapColumns
to beforeReques
t with a new perm information, see below:
beforeRequest: function(){
perm = {0:2,1:0,2:1,3:3,4:4,5:5,6:6,7:7,8:8,9:9,10:10};
myGrid.jqGrid("remapColumns", perm, true);
}
The columns are correctly reordered, and I can search column value, but the column sorting function was just disabled. The click event seems not working. Can somebody help? How can I get it back? Really appreciate it.
Thanks very much!
Yan