Hidding parent tasks

Is it possible to hide all parent tasks and display only the sub tasks?
For example when a button is clicked.

Hello,
Yes, it is possible to do that using onBeforeTaskDisplay event handler:
https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskdisplay_event.html
However, if the task is hidden, because its parent is collapsed, such a task won’t be displayed.
Here is the snippet:
http://snippet.dhtmlx.com/56e85f599

1 Like

Hello team, it is possible to only block the parent tasks??

Hello.
Answered here: Unlock a parent task. Please don’t duplicate the same question in many places.