Our pure JavaScript Scheduler component


Post by pkerstenplanon »

I want to be able to control grouping based on certain situations. I have set the initial grouping through the features input binding. I was under the impression if I updated this variable with a new object the scheduler would update the grouping but it doesnt. How can I change the grouping on a later moment? And can I also remove any current grouping?

Thanks in advance


Post by ghulam.ghous »

Hi there,

You can change grouping dynamically. There are method available that you can use to get it done.
You can use group method on store to add a new group.
https://bryntum.com/products/scheduler/docs/api/Core/data/mixin/StoreGroup#function-group

You can also do this by changing the group field:
https://bryntum.com/products/scheduler/docs/api/Grid/feature/Group#config-field

scheduler.features.group. field = 'new field'

Similarly you can use clearGroups method to remove the groups:
https://bryntum.com/products/scheduler/docs/api/Core/data/mixin/StoreGroup#function-clearGroupers

Please explore the methods available on https://bryntum.com/products/scheduler/docs/api/Core/data/mixin/StoreGroup.

Regards,
Ghous


Post Reply