I have disabled the default delete appointment buttons in favor of a delete button on my advanced edit form in RadScheduler. This delete button works great except in one scenario. If I click on one occurrence of a recurring appointment and edit only that occurrence and then click the Delete button, it fails. I understand that when the occurrence that is to be deleted does not already exist as an exception then the only task is to update the recurrence string in the parent record, but I'm unsure as to accomplish this. The javascript behind my delete button is as follows:
function DeleteAppointment() {
var scheduler = $find("<%= Scheduler1.ClientID %>");
var app = scheduler.get_currentAppointment();
var deleteSeries = (app.get_recurrenceState() == 1);
scheduler.deleteAppointment(app, deleteSeries);
scheduler.hideAdvancedForm();
}
When this fails, the server-side DeleteAppointment event is not generated; thinking that this instance might use a different event, I also checked for OccurrenceDelete and RecurrenceExceptionCreated, but neither of those is occurring either. In addition, the advanced form is not hidden, which would seem to indicate that there is a problem in this situation.
Can you tell me how I can successfully delete an appointment recurrence?
Thanks for your help,
Linda