Back to Devexpress

SchedulerAppointmentFormEventArgs.FormType Property

blazor-devexpress-dot-blazor-dot-schedulerappointmentformeventargs.md

latest2.1 KB
Original Source

SchedulerAppointmentFormEventArgs.FormType Property

Specifies the appointment form type.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public SchedulerAppointmentFormType FormType { get; set; }

Property Value

TypeDescription
SchedulerAppointmentFormType

A SchedulerAppointmentFormType enumeration value.

|

Available values:

NameDescription
EditForm

The extended (pop-up) form that opens when a user clicks the expand button in the compact edit form.

| | CompactEditForm |

The compact form that appears when a user creates or edits an appointment.

|

Remarks

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

razor
<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 additional information.

See Also

SchedulerAppointmentFormEventArgs Class

SchedulerAppointmentFormEventArgs Members

DevExpress.Blazor Namespace