Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Subathra on May 30, 2009 00:12
open dhtmlx forum
Disabled or non dragable the item in tree view

Hi,

I wanna disabled or non drag & drop the parent item only. Is it possible? Kindly help me....

Thanks & Regards,
P.Subathra
Answer posted by Support on Jun 01, 2009 05:59
You can add the next code to the tree initialization

tree.attachEvent("onBeforeDrag",function(id){
          if (tree.getLevel(id) == SOME ) return false;
          return true;
})

where SOME - level, for which drag need to be blocked