Making nodes non-selectable?

Is it possible to make certain nodes in the tree non-selectable, whereas all others can still be selected?

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