An appointment in the Scheduler.
public class AppointmentItem : SourceObjectContainer
Public Class AppointmentItem Inherits SourceObjectContainer
Related API Members
The following members accept/return AppointmentItem objects:
The following actions can be used to populate the Scheduler with appointments:
- Invoke the Appointment Window.
- Activate the In-Place Editor.
- Assign a collection of data objects to the DataSource.AppointmentsSource property and specify the required mappings.
- Add appointments to the SchedulerControl.AppointmentItems collection.
AppointmentItem collections are accessible using the following members:
|Collection||Member to Access|
|AppointmentItemCollection||SchedulerControl.AppointmentItems. The collection does not contain appointment occurrences.|
|IEnumerable<T><AppointmentItem,>||SchedulerControl.GetAppointments - returns all existing appointments, including occurrences, in the specified interval.|
When an end-user creates a new appointment using an in-place editor or an appointment editing form, it fires the SchedulerControl.InitNewAppointment event. You can handle this event to modify a newly created appointment. Subsequently, the SchedulerControl.AppointmentsUpdated event occurs.
The SchedulerControl.AppointmentsUpdated event fires when an appointment is changed. You can handle this event to save changes to the external data source.
To get access to the source objects behind the selected appointments, use the SchedulerControl.SelectedAppointmentsSource property. Use the SchedulerControl.GetAppointmentItemBySourceObject method to get an appointment by its source object.