Edit this page

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


protected void RadScheduler1_AppointmentInsert(object sender, SchedulerCancelEventArgs e)
{
    if (e.Appointment.Subject == String.Empty)
    {
        e.Cancel = true;
    }
}


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

Is this article helpful? No Yes
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy