RadControls for ASP.NET AJAX
The AppointmentInsert event occurs when an appointment is about to be inserted in the data source.
AppointmentInsert has two parameters:
Example
CopyC#
protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
{
if (e.Appointment.Subject == String.Empty)
{
e.Cancel = true;
}
}
CopyVB.NET
Protected Sub RadScheduler1_AppointmentInsert(ByVal sender As Object, _
ByVal e As SchedulerCancelEventArgs) Handles RadScheduler1.AppointmentInsert
If e.Appointment.Subject = String.Empty Then
e.Cancel = True
End If
End Sub
See Also