Back to Devexpress

SchedulerAppointmentFormClosingEventArgs Class

blazor-devexpress-dot-blazor-c4a1f74d.md

latest2.2 KB
Original Source

SchedulerAppointmentFormClosingEventArgs Class

Provides data for the AppointmentFormClosing event.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public class SchedulerAppointmentFormClosingEventArgs :
    SchedulerAppointmentOperationEventArgs

SchedulerAppointmentFormClosingEventArgs is the data class for the following events:

Remarks

The AppointmentFormClosing event is raised before the extended or compact appointment form is closed. Use the event argument’s FormType property to identify the form.

razor
<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 instance, show an information message.
        }
    }
    // ...
}

Inheritance

Object EventArgs CancelEventArgs SchedulerAppointmentOperationEventArgs SchedulerAppointmentFormClosingEventArgs

See Also

SchedulerAppointmentFormClosingEventArgs Members

DevExpress.Blazor Namespace