DHTMLX Docs & Samples Explorer

onAfterAdd

Occurs after item adding is finished.

data.attachEvent("onAfterAdd", function (obj, index){
     //any custom logic here
});

Parameters:

  • the object which will be added
  • the index which an item will be added at, optional