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

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