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

SchedulerAppointmentFormEventArgs.FormType Property

Specifies the appointment form type.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public SchedulerAppointmentFormType FormType { get; }

Property Value

Type Description
SchedulerAppointmentFormType

A SchedulerAppointmentFormType enumeration value.

Available values:

Name Description
EditForm

The detailed (pop-up) form that appears when you create an appointment and then click the expand button, or when you edit an appointment.

CompactEditForm

The compact form that appears when you create an appointment.

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.

<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;
        }
    }
    // ...
}

Refer to the AppointmentFormShowing event description for more information.

See Also