RadControls for ASP.NET AJAX
The AppointmentDelete event occurs just before the scheduler calls its data source to delete an appointment.
AppointmentDelete has two parameters:
Example
CopyC#
protected void RadScheduler1_AppointmentDelete(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Attributes["ReadOnly"] == "true")
{
e.Cancel = true;
}
}
CopyVB.NET
Protected Sub RadScheduler1_AppointmentDelete(ByVal sender As Object, _
ByVal e As SchedulerCancelEventArgs) Handles RadScheduelr1.AppointmentDelete
If e.Appointment.Attributes("ReadOnly") = "true" Then
e.Cancel = True
End If
End Sub
See Also