If all groups have to be collapsed, I can suggest to loop over the data and set the expanded field of all records to false. This is an example showcasing it:
As the groups can be nested on many levels, the example only covers the first level, but it can be done recursively to cover N number of group levels if needed.
I hope this is helpful.
Regards,
Stefan
Progress Telerik
Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive , special prizes and more, for FREE?! Register now for DevReach 2.0(20).