I've got a number of grouped ressources, similar to your sample
https://ej2.syncfusion.com/aspnetcore/Schedule/TimelineResourceGroup
Upon loading of the schedule, I'd like to collapse all groups that are not the primary group of the User. I've tried around a bit, e.g. by trying to simulate a click event for elements by class e-rsssource-collapse, but can't quite get it to work.
Using the sample above, how could I collapse "Project 2" on or after the schedule has loaded?
Thanks!