Is there a way to load all sections at once?

Hi,

I load all sections in a scheduler one by one with scheduler.addsection() and that is rather slow…

for (var i = 1; i < storePersons.data.items.length; i++) {
scheduler.addSection({
key: storePersons.data.items[i].data.PersonID,
label: storePersons.data.items[i].data.Name
}, null);
}

Is there a smarter way to load the scheduler?
Any help would be appreciated!

Hello,

Form array of sections beforehand and pass it to createTimelineView function as y_unit value.

Best regards,
Ilya

Hello Ilya,

Unfortunatly, this does not solve my problem. I need a way to refresh the sections AFTER the schedular has been rendered (depending on some settings the user can filter the sections).

Can I pass an array of sections to the control and make it refresh itself?

Or do I need to call createTimelineView again? I that ok to call this function multiple times?

check scheduler.updateCollection

docs.dhtmlx.com/doku.php?id=dhtm … collection