Check documentation for the latest version 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);
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