How to cancel events in the case of server operation failed?

Hi all,

last days I’m trying to integrate the scheduler fully in my asp.net application. I finished all things, now I can add, update, select and delete my events, that are connected to the database server. Everything functions fine, except that I cannot cancel events if something is wrong on my DB server. Actually, I can cancel the deletion of event, via onBeforeEventDelete handler. But how I can do the similar thing for event insertion or event changing?

Following is what I have now, and it does NOT work:

    function eventAddedHandler(event_id, event_object) {
           return false;
    }

    function eventChangedHandler(event_id, event_object) {
        return false;
    }

    function eventDeletedHandler(event_id, event_object) {
        return false; 
    }

    scheduler.attachEvent("onEventAdded", eventAddedHandler);
    scheduler.attachEvent("onEventChanged", eventChangedHandler);
    scheduler.attachEvent("onBeforeEventDelete", eventDeletedHandler);

In this things, only the cancellation of deleting works properly.

Please help me.
All the best,
Nebojsha Brindic

Hello,

What you are looking for is onBeforeEventChanged event.

Best regards,
Ilya