Skip to main content
A newer version of this page is available. .

ASPxSchedulerDataWebControlBase.AppointmentInserting Event

Occurs before an appointment is added to the AppointmentBaseCollection collection and allows you to cancel the operation.

Namespace: DevExpress.Web.ASPxScheduler

Assembly: DevExpress.Web.ASPxScheduler.v18.1.dll

Declaration

public event PersistentObjectCancelEventHandler AppointmentInserting

Event Data

The AppointmentInserting event's data class is PersistentObjectCancelEventArgs. The following properties provide information specific to this event:

Property Description
Cancel Gets or sets whether to cancel the operation.
Object Gets the persistent object (appointment, resource or appointment dependency) for which the event occurs. Inherited from PersistentObjectEventArgs.

Remarks

The AppointmentInserting event is raised before an appointment is added to the AppointmentBaseCollection collection and allows you to cancel the operation. To accomplish this, set the PersistentObjectCancelEventArgs.Cancel property to true. The event parameter’s PersistentObjectEventArgs.Object property allows identifying the processed appointment.

See Also