DxScheduler.AppointmentFormClosing Event

Fires before the appointment form is closed.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

Declaration

[Parameter]
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
FormType Specifies the appointment form type.

Remarks

This event is raised before the detailed (pop-up) or compact appointment form is closed. Use the event argument's FormType property to identify which form is used.

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             ActiveViewType="SchedulerViewType.WorkWeek"
             AppointmentFormClosing="OnAppointmentFormClosing">
    @*...*@
</DxScheduler>

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

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

See Also