JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Scheduler › Ungrouping events › Reply To: Ungrouping events
Hi BLaGO,
Currently, only the resources property has a change listener, and not any of the properties of its items. So the only way to force a refresh on the header is to ‘refersh’ the resources property.
So similar to the demo here: Scheduler Resources, you need to first copy the resources[0] object to a new variable and change its dataSource. Then set resources to a new array containing the update object.
For example:
let newResourceObject = document.querySelector(‘smart-scheduler’).resources[0];
newResourceObject.dataSource = [];
document.querySelector(‘smart-scheduler’).resources = [newResourceObject];
Best Regards,
Ivan Peevski
Smart UI Team
https://www.htmlelements.com/
-
This reply was modified 1 year, 11 months ago by
ivanpeevski.