I am creating a custom column chooser for jqgrid. On selecting columns and saving, I get a set of columns as selected columns.
How to update the grid with selected columns, manually? Thanks.
I am creating a custom column chooser for jqgrid. On selecting columns and saving, I get a set of columns as selected columns.
How to update the grid with selected columns, manually? Thanks.
It's very easy:
showHideCol
method (or showCol
and hideCol
) for showing/hiding the columnsremapColumnsByName
method (or an old remapColumns
) for changing the order of the columns. See the demo from the answer and the demo from another answer.