https://snippet.dhtmlx.com/i2xdhh2y
When I add a new task to a parent task using gantt.addTask, it remains collapsed.
I’ve got the expand tree initially config set to true, and I also tried passing in open: true when I create the task object.
However, it seems I have to explicitly use gantt.open(taskId) otherwise the task is always collapsed.
Is this the only way or is there something I’m missing? Thanks!
Hello, It seems that when adding a task using the addTask method, Gantt doesn’t take the open property into account. For now, you will need to use the gantt.open method. I have reported this issue to the development team for further investigation.
addTask
open
gantt.open
Hello, The dev team fixed the bug with the open property when adding a task: https://docs.dhtmlx.com/gantt/whatsnew.html#902
You can see that the bug is no longer reproduced in the following sample: https://snippet.dhtmlx.com/t2sn1gq8