Check documentation for the latest version of dhtmlxSuite onBeforeAdd DHTMLX Docs

onBeforeAdd

fires before item adding is initiated

void onBeforeAdd();

Example

data.attachEvent("onBeforeAdd", function (id, obj, pos){
     //any custom logic here
     return true;
});

Details

Event is blockable, if false value is returned by a custom method, the default reaction will be blocked.

Back to top