Check documentation for the latest version of dhtmlxSuite onBeforeAdd DHTMLX Docs


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


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


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

Event name is case insensitive.

Back to top