Planned Start/End date


#1

Hi,

I have this Planned Start button:

But when I click on Planned Date Button in Project#2 that happens:


How can I get the planned Start/End date in the whole Project#2 Tree? I need the dates in all children.

Here the snippet: http://snippet.dhtmlx.com/29673caf7

Can anyone help me?

Thanks.


#2

Hello Mark,
You can use eachTask method and specify the parent parameter. Then it will iterate over all child tasks:
https://docs.dhtmlx.com/gantt/api__gantt_eachtask.html
Here is the updated snippet:
http://snippet.dhtmlx.com/217425cff


#3

Thanks, but how can I save the child dates?
If It use gantt.updateTask(task.id) It only save the first child, how can I save the whole tree?


#4

Hello Mark,
You can use gantt.updateTask(task.id); in the gantt.eachTask method:
http://snippet.dhtmlx.com/cc93a5f9f


#5

Perfect, thanks again.