Check documentation for the latest version of dhtmlxSuite onOpenStart DHTMLX Docs

onOpenStart

fires at the moment when the "plus" icon is clicked in treegrid

boolean onOpenStart(string|number id,number state){ ... };

Parameters

idstring|numberthe id of the related tree-item
statenumberthe current item state, 1 if item is currently opened

Returns

booleantrue - confirms opening/closing, false - denies opening/closing

Example

treegrid.attachEvent("onOpenStart", function(){
  //custom code here
  return true;
});

Details

Fires before real item opening, also fires for item closing.

Back to top