Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Seshu on Jan 15, 2009 06:03
open dhtmlx forum
How to disable and enable a DHTML tree on the selection of a node.


Answer posted by Support on Jan 15, 2009 07:14
What do you mean by "disable" | "enable" ?
Answer posted on Jan 15, 2009 20:47
By disable and enable i meant to disable the clicks on the tree and all its nodes and by enable i meant to enabling the same.
Answer posted by Support on Jan 16, 2009 03:01
The pro version of tree supports
    tree.lockTree(mode)
command ( dhtmlxtree_li.js ) need to be included.

You can use something similar to 

tree.attachEvent("onClick",function(){
      tree.lockTree(true)
});