Is there a way we can implement expand all/collapse all functionality for grouping feature in jqgrid? As I understand setting groupingCollapse: true, collapses the data but I would like to make it dynamic, may be on the click of +/- icons placed within the grid. Thanks in advance for any suggestions/help…
Is there a way we can implement expand all/collapse all functionality for grouping feature
Share
I think you will find the answer on your question in the old answer. The main idea of the answer is to use
sortnames[0]property of the parametergroupingViewof jqGrid. It is an array which elements can be used to constructs the ids of grouping headers and one can usegroupingTogglemethod to collapse or expand the group header. In the way you can expand or collapse of all groups.