Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by pingo on Nov 11, 2008 01:40
open dhtmlx forum
how to set the root node unable to select

I am using dhtmlXTree,I want to set the root node unable to select but not to other children node

thank you very much

Answer posted by Support on Nov 11, 2008 03:07
can be done as

tree.attachEvent("onSelect",function(z){
   if (z == ROOT_ID ) tree.clearSelection();
});