This is a migrated thread and some comments may be shown as answers.

Deleting an appointment

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Krishna
Top achievements
Rank 2
Krishna asked on 02 Feb 2009, 06:18 PM
I am trying to delete an occurrence of an appointment.  This does not seem to work, but if I delete the series, the 

 

AppointmentDelete event is called and the appointment gets deleted.  Not sure why this event would not be called when only one particular occurrence has to be deleted.

Would appreciate if I could get some help with this as well as with the RecurrenceExceptionCreated event?

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 03 Feb 2009, 03:22 PM
Hello Kris,

If the user modifies an individual appointment occurrence, this creates an exception. The RecurrenceRule of the master is modified to include the date and time of the exception so that no occurrence is generated for the exception occurrence. Then the exception is stored in the database and its RecurrenceParentID property is set to reference the original master. This way the exception is still linked to the original recurrence series. More on recurring appointments you can read here
http://www.telerik.com/help/aspnet-ajax/schedule_serversideworkingwithrecurringappointments.html

With this in mind, when you delete an appointment, the AppintmentUpdate event will fire to update the master apponitment. RecurrenceExceptionCreated will fire if you modify an occurrence (not the series). For example, the event fire if you drag an occurrence or if you change the subject.



All the best,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Scheduler
Asked by
Krishna
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or