We're using the Calendar with the Scheduler (additional license purchased for it), and - while in timeline mode, we'd like to "Select all events" shown by the Scheduler.
I found that there's a "selectionMode" setting which would display a checkbox against a specific Resource.
You would add a checkcolumn to the columns definition of your scheduler mode, and on toggle, query the current row's record (which is the resource) for all its events, and use the API to select them.
It works fine if there's a field to which the column maps that holds the checked/unchecked value.
What is happening is that the renderer is re-rendering that cell on change. It sets the checkbox's value to undefined because there's no field to get a value from. And undefined is casted to false, so it unchecks.
So simply add the data field you want represented by the check column and it'll work fine.
The checkbox works fine if I map it to a field, but when checked/unchecked it emits a "sync" event on the Resource. Is there any way to avoid doing this? We only expect sync on "events", not on Resources