Hi guys!
I'm obtaining tasks and calendars for the tasks via api and setting it on the gantt via setTasks[] and setCalendars[]. Evetything works fine during the first load.
However, if I'm loading additional tasks via api and resetting both tasks and calendar, I'm receiving the following error.
Capture2.PNG (26.75 KiB) Viewed 1354 times
Does it mean that the calendars should be like a static config that could not be changed once the gantt is loaded?
Thanks Alex, I'll try to prepare runnable test case to share with you.
Just some more details on the issue. The error appears if only I'm ressetting the calendar with previously set calendar child.
Like, for the first load the calendar data is following:
It should be mentioned that the error doesn't appear if the calendar children ids are different during
various gantt updates.
Maybe there is the way to clear data in the gantt's calendar store before uploading updated data?
Hi guys!
I've made changes to inline-data sample in order to replicate the needed behavior (in attachment).
The calendar is assigned to each task child. Clicking on "Change Data" button simulates the api call to receive updated tasks and calendars.
The idea is that user could load task 1, then refresh data and load both task 1 and 2 with respective calendars. The non-working calendar intervals could change upon refresh.
Hovewer, from the attached sample, if we reset existing calendar intervals, only the initially loaded non-working intervals are displayed on gantt. Morover, at some point I'm catchin the following error: