is there a way to force parent dates to refresh and draw parent (summary task) accordinglly, like it is done when (child) task is moved?
My data source (last one is parent with start = end)
<KendoGanttItem><id>10741</id><start>19.09.16 05:00</start><end>19.09.16 08:00</end><parentId>13086</parentId>...</KendoGanttItem>
<KendoGanttItem><id>11086</id><start>19.09.16 13:00</start><end>19.09.16 14:00</end><parentId>13086</parentId>...</KendoGanttItem>
<KendoGanttItem><id>13086</id><start>19.09.16 00:00</start><end>19.09.16 00:00</end><summary>Yes</summary><expanded>Yes</expanded>...</KendoGanttItem>
When I move 1 of the child tasks, parent gets start and end date and is drawn accordingly.
That is what I would like to achive programmatically.
Tried setting some property so it could refresh
11 Answers, 1 is accepted
As far as I can understand, initially you have a parent task, which start and end dates do not match the start and end of its children. If this is the case, I am afraid, that the Gantt API would not offer you the possibility to update the summary task dates. The Gantt chart DataSource members are expected to match properly their start / end dates.
In case you think that such functionality would add value to the widget, I would suggest you to log your idea in our Feedback portal.
you did understand me correctly. So it cannot be done programmatically...
Is there any way to fire move event on task, because when task is moved, "parent task" does get new start and end dates...
Check my attachment (sorry for not including it before...)
In 3rd step you can see that parent appears on screen, and it gets correct dates and it happens after task move event...
Thanks for your suggestions and reply.
The move event of the Gantt could be manually triggered using the trigger() method of the widget (gantt.trigger('move');). This, however, won't force the parent (summary) task to update its start and end. It will update those values only, when a user interaction is detected. Therefore, I am afraid, that the widget does not offer a way to programmatically trigger update of the discussed values.
thank you again.
https://demos.telerik.com/kendo-ui/gantt/index - If you look at this example, the summary start and end date gets recalculated based on the changes in the child task. How is this achieved?
By default, upon user interaction (edit, resize, move), the Gantt widget will update accordingly all parents of the Task that has been changed. This is done automatically, so you won't need to do anything extra to get that behavior.
I have tested the Gantt widget with Kendo version Q2 2014.2.716 when the widget has been introduced. It properly updates the parent start/end dates upon child edit/resize/move. Here you could find a Dojo sample on that.
If we manage dates from gantt, this feature works ok. I am trying to edit dates from some other event and that doesnt recalculate the start and end dates or the percentage for the summary task. Here is the dojo example: https://dojo.telerik.com/atakEcUH/11
Can you please suggest how we can achieve it here?
I've posted my reply in the other thread with the same subject: Ticket ID: 1431581. If you have further questions, you can ask them there, in order to avoid thread duplication.