DHTMLX Tree : Disable expanding functionality of a treegrid'

Hi,

I want to disable expanding functionality of a treegrid’s particular parent node.

How to do it ?

Can be done by adding custom event code

grid.attachEvent(“onOpen”,function(id){
    if (some_check(id))  return false;
    else return true;
});

returning false from onOpen event will block opening|closing operation for related item.