Check documentation for the latest version of dhtmlxSuite onOpenEnd DHTMLX Docs

onOpenEnd

fires right after an item in the tree has become open

void onOpenEnd(string|number id,number state);
idstring|numberthe id of the node that will be opened
statenumberthe current open state of the item

Example

myTree.attachEvent("onOpenEnd", function(id, state){
    // your code here
});

Details

The event is also called for "non-closable" nodes and for nodes without the open/close functionality. In that case the function's result will be ignored.

The "state" parameter's values:

  • 0 - item has no child nodes
  • -1 - item is closed
  • 1 - item is opened
Back to top