Remove display of Parent in DHTMLX Gantt view

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

https://docs.dhtmlx.com/gantt/desktop__filtering.html

If you return false there, the task won’t be displayed.

You can use the hasChild method to check if a task has subtasks:
https://docs.dhtmlx.com/gantt/api__gantt_haschild.html

Here is an example of how it can be implemented:
https://snippet.dhtmlx.com/d3ps0i3w