New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
AppointmentDelete
The AppointmentDelete event occurs just before the scheduler calls its data source to delete an appointment.
AppointmentDelete has two parameters:
-
sender is the scheduler control.
-
e is an object of type SchedulerCancelEventArgs. It has two properties:
-
Appointment is the appointment that is about to be deleted.
-
Cancel is a boolean value that lets you prevent the deletion.
Example
C#
protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Attributes["ReadOnly"] == "true")
{
e.Cancel = true;
}
}