Skip to main content
A newer version of this page is available. .

SchedulerAppointmentFormEventArgs Class

Provides data for the AppointmentFormShowing event.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public class SchedulerAppointmentFormEventArgs :
    EventArgs

Remarks

The AppointmentFormShowing event is raised before the detailed (pop-up) or compact appointment form is shown. Use the event argument’s FormType property to identify the form. You can set the Cancel property to true to not show the appointment form.

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

@code {
    void OnAppointmentFormShowing(SchedulerAppointmentFormEventArgs args) {
        if (args.FormType == SchedulerAppointmentFormType.CompactEditForm) { 
            args.Cancel = true;
        }
    }
    // ...
}

Use the event’s argument’s Appointment property to access the appointment for which the form is displayed. The FormInfo property stores information about form settings.

Refer to the AppointmentFormShowing event description for more information.

Inheritance

Object
EventArgs
SchedulerAppointmentFormEventArgs
See Also