Check documentation for the latest version of dhtmlxSuite onBeforeAdd DHTMLX Docs

onBeforeAdd

occurs before an item is adding to datastore

void onBeforeAdd(object obj,string|number index);
objobjectdata for a new item
indexstring|numberan index, at which a new item will be added

Example

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

Details

Event can be blocked, returning false will prevent normal reaction of component.

Event name is case insensitive.

Back to top