DHTMLX Docs & Samples Explorer

onAfterAdd

Event name is case insensitive.

This event calls user-defined handlers (if there are any) and passes the following parameters:

  • obj - data for a new item
  • index - an index, at which new item was added
chart.attachEvent("onAfterAdd", function (obj, index){
//any custom logic here
});