SchedulerControl.CustomAllowAppointmentDelete Event
Occurs when trying to delete an appointment.
Namespace: DevExpress.Xpf.Scheduling
Assembly: DevExpress.Xpf.Scheduling.v24.2.dll
NuGet Package: DevExpress.Wpf.Scheduling
#Declaration
public event AppointmentItemOperationEventHandler CustomAllowAppointmentDelete
#Event Data
The CustomAllowAppointmentDelete event's data class is AppointmentItemOperationEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
Allow | Gets or sets whether performing a particular action is allowed. |
Appointment |
Gets the appointment for which the element is raised.
Inherited from Appointment |
Recurring | Gets whether the target appointment is recurring. |
#Remarks
Handle the CustomAllowAppointmentDelete event and sets its AppointmentItemOperationEventArgs.Allow property to specify a particular case when an end-user is allowed to delete the appointment. If you do not specify the required behavior manually, the SchedulerControl.AllowAppointmentDelete property manages whether deleting appointments is allowed.
Access the appointment to be deleted using the AppointmentItemEventArgs.Appointment property. To prevent the appointment from being deleted, set the AppointmentItemOperationEventArgs.Allow property to false.
Note
The Scheduler