SchedulerControl.AppointmentDrag Event
Occurs when appointment is dragged in the Scheduler control.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v19.2.dll
Declaration
Event Data
The AppointmentDrag event's data class is AppointmentDragEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
AdditionalAppointments | Provides access to the collection of the additional dragged appointments. |
Allow | Specifies whether the appointment can be dragged along the time cells. |
CopyEffect | Indicates whether the drop effect in a drag-and-drop appointment operation is Copy. |
EditedAppointment | Gets the appointment being modified in the drag-and-drop event. |
ForceUpdateFromStorage | Gets or sets whether the View is forced to query appointments from the storage. |
HitInterval | Gets the time interval represented by the time cell to which an appointment was dragged. |
HitResource | Gets the resource to which an appointment was dragged. |
NewAppointmentResourceIds | Gets or sets the IDs of resources for a new appointment. |
SourceAppointment | Gets the source appointment in the drag-and-drop event. |
Remarks
Use this event to manage, with the drag-and-drop action, the appointment within the Scheduler control. This event can be denied, cancelled or handled specifically using the information provided by event arguments.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the AppointmentDrag event.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.