Hi All,
I have a use case in which I need to list all Child nodes only and relationships within them. No parent display is needed. I don’t want to show collapsing on the left side listing as well.
How to do the same? Please let me know if anyone knows
Hello Debjoy, You can filter tasks by using the onBeforeTaskDisplay event handler: https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskdisplay_event.html
onBeforeTaskDisplay
https://docs.dhtmlx.com/gantt/desktop__filtering.html
If you return false there, the task won’t be displayed.
false
You can use the hasChild method to check if a task has subtasks: https://docs.dhtmlx.com/gantt/api__gantt_haschild.html
hasChild
Here is an example of how it can be implemented: https://snippet.dhtmlx.com/d3ps0i3w