DHTMLX Tree : How to get tree in freeze state.


I want to have combination of disable, checked, locked attributes functionality in my tree.

I want to disable the tree’s particular item but still it should show item checked if the item is checked and I should be able to get the value of Id of that node and also its child items should get disabled. Means you can say that it is in freezed state.

How to get this done ?

You can use both “disabled” and “checked” attributes to show items with disabled checkbox in necessary state.
To block any other activities, but will be able to access the item by API, you must not use “locked” attribute, but use custom events instead, they allow to block most of functionality.

    if (some_check(id))
       return false; //block operation
    return true;