Hii,
how can I get all the id’s of the child from a parent node
Hello,
If you want to get the DOM elements of the child tasks, you can get the IDs of the children by getChildren
method and use getTaskNode
to return the HTML element of the task bar:
https://docs.dhtmlx.com/gantt/api__gantt_getchildren.html ;
https://docs.dhtmlx.com/gantt/api__gantt_gettasknode.html ;
or getTaskRowNode
to return the HTML element of the task row in the table:
https://docs.dhtmlx.com/gantt/api__gantt_gettaskrownode.html ;
If you need to get the IDs of 1st-level child tasks, then you can use getChildren
method.
Please check the example:
https://snippet.dhtmlx.com/yz09ke93 ;
If you need to get the IDs of children of all levels, then you need to use eachTask
method:
https://docs.dhtmlx.com/gantt/api__gantt_eachtask.html ;
Please check the example:
https://snippet.dhtmlx.com/26xqlpky