#103778
ivanpeevski
Participant

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, 8 months ago by ivanpeevski.