Parameters:
view.attachEvent("onBeforeDelete", function (id){ //any custom logic here });
Event is blockable, if non-true value returned from custom method, default reaction will be blocked