I am using struts2 jqgrid i want to know if there is a method which i can use to expand all sub groups when main group is clicked in grid. For example
-grp1
+subgrp1
+subgrp2
-grp2
+subgrp1
+subgrp2
+grp3
so when i click on +
sign on grp3 the subgrp will also be expanded.
Any idea how to do this?
Look at the demo created for the old answer and the modified one from the answer. It uses groupingToggle method to expand the group by API. What you need is just another enumeration of subgroups, but it seems that one can use almost the same code to solve your problem.