I’m using groupBy()
and would like to have each group default to the split-task view. How can I set open = false
and render = 'split'
for these virtual tasks?
Hello,
To iterate tasks, you need to use the eachTask
method:
https://docs.dhtmlx.com/gantt/api__gantt_eachtask.html
There, you need to check the $virtual
property of the task
object and modify the properties of the group tasks:
https://docs.dhtmlx.com/gantt/desktop__task_properties.html#:~:text=to%20this%20property.-,%24virtual,-boolean
Then you need to call the render
method to repaint the changes:
Here is an example of how it can be implemented:
Thanks! The snippet worked perfectly after I changed task.open = false
to task.$open = false
.