How can we have global Expand/Collapse for JQGrid when we have rows grouped on some field?
On expanding, it should expand all groups and on collapsing all groups should be collapsed.
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.
You can set default value of the
groupCollapseproperty of thegroupingViewparameter of jqGrid in the same way like you set any other default parameter:UPDATED: After additional explanation in the comments I can me imagine that in some cases it can has the behavior when all groups will be expanded/collapsed if any from the groups will be expanded/collapsed.
See the demo.