DHTMLX Docs & Samples Explorer

onAfterAdd

Occurs after item adding is finished.

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

Parameters:

  • id - the item id
  • pos - (optional) the index of the position that the item was added at (zero-based numbering)