SchedulerControl.OptionsCustomization Property
Provides access to the scheduler control's customization options.
Namespace: DevExpress.Xpf.Scheduler
Assembly: DevExpress.Xpf.Scheduler.v14.2.dll
#Declaration
#Property Value
Type | Description |
---|---|
Options |
An Options |
#Remarks
Use the OptionsCustomization property to implement end-user restrictions, if it is necessary to prevent end-users from creating (the OptionsCustomization.AllowAppointmentCreate property), deleting (the OptionsCustomization.AllowAppointmentDelete property) or editing (the OptionsCustomization.AllowAppointmentEdit property) appointments shown within the SchedulerControl. To get the complete list of available options and their descriptions, refer to the OptionsCustomization.
#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: