AppointmentConflictEventArgs.AppointmentClone Property
Gets the clone of the appointment being processed in the SchedulerControl.AllowAppointmentConflicts event.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
Appointment | An Appointment object which is a clone of the Appointment |
#Remarks
Use the AppointmentClone property to access an appointment after an end-user has dragged-and-dropped it onto another time interval, and when it's necessary to determine if any conflicts exist after this appointment has been dropped. So, the appointment returned by the AppointmentClone property is a copy of the appointment currently being processed in this event (AppointmentEventArgs.Appointment) except for the time interval, which is assigned to the new AppointmentConflictEventArgs.Interval.
#Examples
This example demonstrates how to prevent end-users from creating appointments within a certain time interval (from 2 PM to 3 PM). To implement end-user restrictions, handle the SchedulerControl.AllowAppointmentCreate event to prevent end-users from creating appointments within a certain time interval and the SchedulerControl.AllowAppointmentConflicts event to prevent an existing appointment from being dragged to the same time interval: