Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by dlanger on Nov 25, 2007 08:13
open dhtmlx forum
Making nodes non-selectable?

Is it possible to make certain nodes in the tree non-selectable, whereas all others can still be selected?
Answer posted on Nov 26, 2007 01:48
There is no such built in functionality, but similar behavior can be achieved by next code

tree.attachEvent("onSelect",function(id){
    if ((id)&&(id==NOT_SELECTABLE)) tree.clearSelection();
});


where NOT_SELECTABLE - id of item which must not be selected