fires before adding an item to the datastore
| id |
| boolean | false, if the operation needs to be cancelled |
view.data.attachEvent("onBeforeAdd", function(id, obj, index){
if (obj.text == "")
return false;
});
Returning false from the event handler will block further processing, and the item will not be added.