5 Answers, 1 is accepted
This is not the easiest thing to write out, but there are some good resources for you. You could use a function like this to check whether or not the RadGrid is expanded or collapsed. Implementing the collapse/expand is a bit more difficult, but you should be able to get a feel for where to start by going through this thread.
Hopefully this helps,
You can fire a ExpandCollapse command and pass the row index as argument:
I have noticed that you have set the group load mode to client. In that case you probably want to avoid a postback when toggling the expanded state of the groups. For this scenario, you can explicitly click the expand/collapse button of the corresponding group. The following approach demonstrates how to make the entire group header to trigger expand/collapse:
Hope this helps. Please give it a try and let me know about the result.
the Telerik team
I having been trying since long to get my grouping to collapse and nothing helped. The only thing helped me was adding AllowExpandCollapse=true. I was trying with AllowGroupingexpandcollapse= true but it did not help. Anyone having the same problem as me like, not able to collapse the groping try AllowExpandCollapse="true" in ClientSettings.
Thanks for sharing your solution with our community. I hope it will prove helpful to other developers as well.
If you happen to face any issues still, feel free to turn to us.