Prevent Tree Node to expand/collapse ?

Hello,

Is there any way to prevent a tree node to expand/collapse ? I can watch the “onBeforeClose” event on trees, but they just receive an id and don’t let you actually control/cancel the event.

Actually I wanted the tree nodes to be always expanded.

Regards,
Howe

You can block onBeforeClose event for the related component

$$(“tree”).attachEvent(“onBeforeClose”, function(){ return false; });

Ah, thanks. Where in the docs is that behavior documented ?
I didn’t find it.

Regards,
Howe

All “onBefore*” handlers can be used to block a related action.

http://docs.webix.com/desktop__event_handling.html#blockableevents

Ah ! Nice, thanks.

Howe