Check documentation for the latest version 6.0 of dhtmlxSuite onAddItem DHTMLX Docs

onAddItem

fires when a new item is added into TreeView

void onAddItem(string|number id,string text,string|number pId,number index){ ... };

Parameters

idstring|numberthe item's id
textstringthe item's text
pIdstring|numberthe parent's id
indexnumberthe item's index

Example

myTreeView.attachEvent("onAddItem", function(id, text, pId, index){
    // your code here
});

Back to top