Skip to main content

Appointment Selection Service

The IAppointmentSelectionService interface in the XtraScheduler provides full control over selected appointments. It has the following delegates:

You can get the IAppointmentSelectionService, as described in Introduction to Services in XtraScheduler document, use it, or substitute your own custom descendant.

The simplest technique to use the Appointment Selection service is to get access to its properties and methods via the SchedulerControl.Services.AppointmentSelection property wrapper, as illustrated below. The code snippet gets a collection of selected appointments and then the selection state of the first appointment in a collection is altered.

AppointmentBaseCollection aptCollection = 
    ASPxScheduler1.Services.AppointmentSelection.GetSelectedAppointments();
ASPxScheduler1.Services.AppointmentSelection.ToggleSelection(aptCollection[0]);
See Also