AppointmentCommand | RadScheduler for ASP.NET AJAX Documentation
Edit this page


The AppointmentCommand event occurs when the user clicks any button in the appointment template. This event is typically used to handle button controls with a custom CommandName value.

AppointmentCommand has two parameters:

  • sender is the scheduler that contains the appointment with the button the user clicked.

  • e is an object of type AppointmentCommandEventArgs. It has three properties:

  • CommandName is the CommandName attribute of the button that was clicked.

  • CommandArgument is the CommandArgument attribute of the button that was clicked.

  • Container is an object of type SchedulerAppointmentContainer that represents the appointment in the scheduler.


protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
    if (e.CommandName == "Delete")

Protected Sub RadScheduler1_AppointmentCommand(ByVal sender As Object, ByVal e As AppointmentCommandEventArgs) Handles RadScheduler1.AppointmentCommand
    If e.CommandName = "Delete" Then
    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