I have a JQGrid which is loading data via AJAX and getting an JSON response.
I would like to know if there is a way to change the order of columns in the colModel of the grid without affecting the mapping of the cell data?
Thanks in advance,
Thomas
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There is a method in jqGrid API called remapColumns:
There was an error in some older versions of jqGrid -> indexes in the permutation array were 1-based, not 0-based. You should also remember that all additional/hidden columns (rownumber, multiselect, etc.) are counted as well.