Skip to main content

AppointmentConflictEventArgs Class

Provides data for the SchedulerControl.AllowAppointmentConflicts event.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v14.2.Core.dll

#Declaration

public class AppointmentConflictEventArgs :
    AppointmentEventArgs

#Remarks

The SchedulerControl.AllowAppointmentConflicts event occurs when the scheduler finds appointments that are in conflict and the OptionsCustomization.AllowAppointmentConflicts property is set to Custom. The AppointmentConflictEventArgs class introduces the AppointmentConflictEventArgs.Conflicts property which returns the collection of appointments that are considered to be in conflict with the current appointment, and the AppointmentConflictEventArgs.Interval property that specifies the time interval of the appointment. The processed appointment is identified by the AppointmentEventArgs.Appointment property.

NOTE

AppointmentConflictEventArgs objects are automatically created, initialized and passed to SchedulerControl.AllowAppointmentConflicts event handlers.

#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:

#Inheritance

Object
EventArgs
AppointmentEventArgs
AppointmentConflictEventArgs
See Also