Skip to main content

SchedulerSettings.AppointmentFormShowing Property

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

Namespace: DevExpress.Web.Mvc

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

Declaration

public AppointmentFormEventHandler AppointmentFormShowing { get; set; }

Property Value

Type Description
AppointmentFormEventHandler

A AppointmentFormEventHandler delegate method allowing you to implement custom processing.

Remarks

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.

Note

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”.

@Html.DevExpress().Scheduler(
settings => {
    //...
    settings.AppointmentFormShowing = (sender, e) =>
    {
        if (e.Appointment.LabelId == 1) e.Cancel = true;          

    };
}).Bind(Model.Appointments, Model.Resources).GetHtml()

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentFormShowing property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also