AppointmentOperationEventArgs.Allow Property
Gets or sets a value indicating whether an end-user is allowed to perform a particular action.
Namespace: DevExpress.XtraScheduler
Assembly: DevExpress.XtraScheduler.v14.2.Core.dll
#Declaration
#Property Value
Type | Description |
---|---|
Boolean | true if an action is allowed; otherwise, false. |
#Remarks
If the Allow property value is not set in the corresponding AllowAppointment~ event handler, then it is considered that the action is allowed (Allow will be set to true by default).
#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: