jqGrid permutation array -
in jqgrid trying use permutation array saving reorder state of columns. eg. basic column state perm = [0,1,2,3,4]
column 3 hidden , column 0 checkbox. have custom context menu use give me perm array of [0,1,3,2,4]
have read in documentation permutation array needs start 1, right? when try using "remapcolumns" functions of jqgrid , pass perm array, works fine. if try hiding , showing columns couple of times, column order getting messed with. please me understand these indices permutation array stand for? column indexes visible columns? should hidden columns part of array? happens in case of frozen columns? in examples have seen perm = [0:1, 1:3, 2:2, 3:1]
correct way? using grid.jqgrid("remapcolumns", perm, true);
try use last parameter of function
grid.jqgrid("remapcolumns", [0,1,3,2,4], true, false);
permutation, updatecells, keepheader
Comments
Post a Comment