How to update date range with child tasks?

Hi,
I need to update date range of a task according to its sub task. When the sub task date,or duration is changed,Then i need to update the date of parenlt task automatically.how to do like this?

Hi,
you can specify some tasks as a ‘projects’. They will calculate their time and duration from child tasks. But moving or resizing of such tasks is impossible
docs.dhtmlx.com/gantt/desktop__t … ojecttasks
docs.dhtmlx.com/gantt/samples/01 … tones.html

You can also do such behavior from the code, by updating task when the children has been modified
docs.dhtmlx.com/gantt/api__gantt … event.html
docs.dhtmlx.com/gantt/api__gantt … event.html
docs.dhtmlx.com/gantt/api__gantt … event.html