I have an issue that is is related to Will's . I have used the column chooser plugin so the user can choose their column arrangement i.e. which columns are to be visible and in what order. I store the columns the user chose in a cookie and in the order that the user chose in the columnChooser.
When the page is refreshed and the grid is reloaded I hide all columns in the grid, read the cookie and loop through the columns stored in the cookie and make them visible in the grid by calling $(#mygrid).jqGrid(“showCol”, Cols).
This does indeed make the correct columns visible, but in the order defined in colModel, not in the order the user chose, i.e. the order they were read from the cookie.
Is there a way to make the columns appear in a given order?