How to disable Tree item

hello team,

i need to disable the particular item in the tree using the item id… that is no onclick event should be fired… could u please guide me to achieve this.

Thanks In Advance

Regards,
Ashok

Hello,

onClick event handler is called for all items. But you may call teh necessary function only for some items:

tree.attachEvent(“onClick”,function(id){
if(id != disabled_id) someFunction(id);
})