In dhtmlXtree, we would like to have certain folder/parent (non-leaf) items in the tree to be un-selectable. By that, I mean that clicking on the item does not highlight it. Is there any wany to do this/ It would only be for certain folder/parent items, not ALL - we’d like some folder/parent items to be selectable.
There is no way to block select, but you can add next code
tree.attachEvent(“onSelect”,function(id){
if (some_check(id))
tree.clearSelection();
});
such code will be called each time when item selected, and if it is a “non-selectable” item - selection will be removed.