Check documentation for the latest version of dhtmlxSuite onAddItem DHTMLX Docs


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


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

Back to top