An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
In BryntumSchedulerPro, how can i collapse multiple resource groups at once without iterating through each group and call resourceStore.collapse() ?
Requirement
I need to keep the collapsed resource groups persisted while changing the view in scheduler (In some scenarios, it requires to load resource data again ).
My Approach
I keep listening to 'toggleGroup' event and save the collapsed group ids in an array.
When the data is loaded, I restore the resource store grouping and then iterate through each group and restore the collapsed status by calling resourceStore.collapse(group);
Issue I have faced
When I try to restore collapsed state for many groups (like more than 20 groups), scheduler gets freezed and not responsive.
I'm looking for
A solution to restore the group collapsed state without my app gets freezed
Forum post
In BryntumSchedulerPro, how can i collapse multiple resource groups at once without iterating through each group and call resourceStore.collapse() ?
Requirement I need to keep the collapsed resource groups persisted while changing the view in scheduler (In some scenarios, it requires to load resource data again ).
My Approach I keep listening to 'toggleGroup' event and save the collapsed group ids in an array. When the data is loaded, I restore the resource store grouping and then iterate through each group and restore the collapsed status by calling resourceStore.collapse(group);
Issue I have faced When I try to restore collapsed state for many groups (like more than 20 groups), scheduler gets freezed and not responsive.
I'm looking for A solution to restore the group collapsed state without my app gets freezed