Gantt open performance issue

Hi everyone.

I have trouble with gatt.open perfomance.

My task tree has 4 level with 800 tasks. Initially tree is collapsed.
I need custom button to able expand all level. I tried to use gantt.open method but it works very slow.

Is there another way to do this?

Best regards.

Hi,
you can set the property “$open” of each task to true of false and redraw the whole gantt
Check the snippet
docs.dhtmlx.com/gantt/snippet/426e8062

Thank you!!