Categories | Question details Back To List | ||
dhtmlXTree - Do not select tree node Is there any way to prevent a node from being selectable? I can make it not closeable (using setItemCloseable with a false param). Now, when you click the + or double click the node, it does not expand/contract the children. But it does still select the node. I want to be able to specify for one node in my tree, that it is non selectable. And the previously selected node remains selected even if I click on this non-selectable node. So something like setItemSelectable(itemID, flag)? Answer posted by Support on Oct 09, 2008 05:13 There is no such API, but you can use code similar to next tree.attachEvent("onSelect",function(id){ if (id == SOME) tree._unselectItem(tree._idpull[id]); return true; }); |