Gantt.config.open_tree_initially = false not working


I’ve set gantt.config.open_tree_initially = false; but tree shows always expanded, why?


Hi @trony2014!

The open_tree_initially property is set once before calling gantt.init() method, after this point the property does not change the state and appearance of the Gantt.

If the task has an open property, then it has a higher priority than the value of open_tree_initially.

Here you can check the samples with different values ​​or without the open property of the tasks:

gantt.config.open_tree_initially = false;

gantt.config.open_tree_initially = true;

Here is a workaround how to make the open_tree_initially property with the highest priority:


Ok, it works! Thanks!