Back to Devexpress

SchedulerAppointmentFormType Enum

blazor-devexpress-dot-blazor-71f17170.md

latest1.8 KB
Original Source

SchedulerAppointmentFormType Enum

Lists values that specify the appointment form type.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public enum SchedulerAppointmentFormType

Members

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.

|

The following properties accept/return SchedulerAppointmentFormType values:

Remarks

The following example uses SchedulerAppointmentFormType values in the AppointmentFormShowing event handler to identify the form type:

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

See Also

DevExpress.Blazor Namespace