Error in reload scheduler - undefined event


I have a problem in the validation of the object.

Before saving the object are performed several tests, which if not satisfied they do not return messages and add this event.

For example if the start date is less than today’s date, then this event can not be added.

But he does not write but always appears this event undefined.

How to treat for failing to appear.

I tried but did not work with eventDelete. Is there any other way?

I look.

Thanks.

But he does not write but always appears this event undefined.

Could you attach a demo where we can reproduce the problem

I tried but did not work with eventDelete. Is there any other way?

You can set onBeforeDelete event handler. If it returns false, the event won’t be removed:

$$(“scheduler”).attachEvent(“onBeforeDelete”,function(id){
if(…)
return false;
})