SchedulerSettings.AppointmentFormShowing Property

Enables you to perform custom actions before the appointment editing window is created.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll


public AppointmentFormEventHandler AppointmentFormShowing { get; set; }
Public Property AppointmentFormShowing As AppointmentFormEventHandler

Property Value

Type Description

A AppointmentFormEventHandler delegate method allowing you to implement custom processing.


The appointment editing window is invoked by clicking the appointment in the scheduler view and selecting the Open command in the drop- down menu. Use this event to cancel editing by setting e.Cancel=true or to perform custom actions.


The SchedulerSettings.AppointmentFormShowing delegate property is not in effect if you use the ViewModel object for customization. In this case, refer to the T635197 ticket for more information.

The following code snippet prevents displaying the editing dialog if the appointment is labeled "Important".

settings => {
    settings.AppointmentFormShowing = (sender, e) =>
        if (e.Appointment.LabelId == 1) e.Cancel = true;          

}).Bind(Model.Appointments, Model.Resources).GetHtml()
See Also