Occurs before item adding is initiated.
data.attachEvent("onBeforeAdd", function (id, obj, pos){ //any custom logic here return true; });
Parameters:
Description:
Event is blockable, if false value is returned by a custom method, the default reaction will be blocked.