Disable tree expanding


I’m developing a system using Dhtmlx scheduler and I’ve added a button to the folder header that opens a modal to assign a project to the user. The issue is that when you click the button the folder collapses, is there any way to disable the collapse when you click the button?

I’ve tried this but it doesn’t work


Thank you.


You can implement it by using onYScaleClick event. Please, see example:

Thank you, this solved the problem.