Hey Guys,
Iam using TimelineView http://docs.dhtmlx.com/scheduler/api__scheduler_createtimelineview.html and I try to update some attributes as descripted here:
scheduler.matrix['timeline'].x_size = 12;
scheduler.setCurrentView();//redraws scheduler
Update x_size works like a sharm, but when I try to update “y_unit”, the Scheduler does not show sections anymore:
scheduler.matrix['timeline'].y_unit= [{
// ....
}];
scheduler.setCurrentView();
Is y_unit compatible for updating?
Hello,
it’s hard to tell without a demo. Try updating timeline sections using serverList/update collection methods of scheduler instead of accessing collection manually
docs.dhtmlx.com/scheduler/api__s … rlist.html
docs.dhtmlx.com/scheduler/api__s … ction.html
docs.dhtmlx.com/scheduler/timeli … mtheserver
Here you are. I created a plunker where y_unit is updated when pressing the red button on top of the page. Please checkout the “updateData()” function inside.
embed.plnkr.co/lPaw9U/
We are using the professional version and we realy need to update attributes without reinitialize the hole scheduler. Thanks!
Hi,
all seems working if you replace a manual update of y_unit with calls of scheduler.serverList/updateCollection methods,
please check this demo
docs.dhtmlx.com/scheduler/snippet/290dc4c6