New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

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

C#
	
protected void RadScheduler1_AppointmentCommand(object sender, AppointmentCommandEventArgs e)
{
	if (e.CommandName == "Delete")
	{
		Delete(e.Container.Appointment);
	}
}
	

See Also

In this article
ExampleSee Also
Not finding the help you need?
Contact Support