Hidding parent tasks


#1

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


#2

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


#3

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


#4

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