ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: queensgambit9 on October 12, 2016, 07:43:38 pm
-
Hi
How can I change the column order after initialization?
-
1. colModel is just an array of columns, you can reorder the columns by manipulation of array items with javascript methods like splice.
2. refresh colModel.
grid.option( 'colModel', grid.option( 'colModel') );
3. refresh grid.
grid.refresh();
-
Thank you.
I also use the show/hide columns feature and since I modify colModel I need to refresh that...How would that be done?
-
Please follow steps 2 and 3 after modifying colModel.