Skip to main content

DxScheduler.AppointmentFormClosing Event

Fires before the appointment form is closed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor


public EventCallback<SchedulerAppointmentFormClosingEventArgs> AppointmentFormClosing { get; set; }

Event Data

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

Property Description
Appointment Specifies the target appointment. Inherited from SchedulerAppointmentOperationEventArgs.
Cancel Gets or sets a value indicating whether the event should be canceled. Inherited from CancelEventArgs.
FormInfo Specifies the appointment form information.
FormType Specifies the appointment form type.


This event is raised before the compact or detailed appointment form is closed. Use the event argument’s FormType property to identify which form is used.

<DxScheduler StartDate="@DateTime.Today"

@code {
    void OnAppointmentFormClosing(SchedulerAppointmentFormClosingEventArgs args) {
        if (args.FormType == SchedulerAppointmentFormType.CompactEditForm) { 
            // Respond to form closing (for instance, show an information message).
    // ...

The AppointmentFormShowing event is raised before the appointment form is shown.

See Also