New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
AppointmentInsert
The AppointmentInsert event occurs when an appointment is about to be inserted in the data source.
AppointmentInsert 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 inserted.You can modify this object to change the data that is sent to the data source.
-
Cancel is a boolean value that lets you prevent the insertion.
Example
C#
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Subject == String.Empty)
{
e.Cancel = true;
}
}