fires before item adding is initiated
obj | object | an object which will be added |
index | index | index, at which item will be added, optional |
boolean | true - to trigger the default action, false - to block it |
myDataView.attachEvent("onBeforeAdd", function (obj, index){
// your code here
return true;
});
the event is blockable, if the false value is returned from the custom method, the default reaction will be blocked
Back to top