AppointmentOperationEventArgs Class
Provides data for the AllowAppointment~ events of the SchedulerControl.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Remarks
The AllowAppointment~ events occur when an end-user tries to perform a particular action, defined by the AllowAppointment~ event, and the corresponding AllowAppointment~ property of the OptionsCustomization object is set to Custom. The AppointmentOperationEventArgs class introduces the AppointmentOperationEventArgs.Allow property that specifies whether the particular action is allowed to be performed by an end-user or not. The processed appointment is identified by the AppointmentEventArgs.Appointment property.
NOTE
Appointment
#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: