AppointmentCommand
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.
Example
protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
Delete(e.Container.Appointment);
}
}
See Also
-
Scheduler - Templates online demo
-
Scheduler - iCalendar Export online demo
-
Scheduler - Drag-and-Drop From RadGrid to RadScheduler online demo