Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Ramakrishna on Jul 27, 2008 07:33
open dhtmlx forum
DHTMLX Tree : Disable expanding functionality of a treegrid's particular parent node.

Hi,
I want to disable expanding functionality of a treegrid's particular parent node.
How to do it ?
Answer posted by Support on Jul 28, 2008 03:11
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.