Skip to main content

SchedulerAppointmentFormMode Enum

Lists values that specify which appointment form a user can use to create and edit appointments.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum SchedulerAppointmentFormMode

Members

Name Description
Both

Users can use both the compact and pop-up edit forms.

CompactEditForm

Users can use the compact edit form.

EditForm

Users can use the pop-up edit form.

Related API Members

The following properties accept/return SchedulerAppointmentFormMode values:

Remarks

A Scheduler can show two forms when users create and edit appointments:

  • The compact edit form - Appears when a user creates or edits an appointment.
  • The extended edit form - Opens when a user clicks the expand button in the compact edit form.

Use the SchedulerAppointmentFormMode enumeration values in the AppointmentFormMode property to specify which form is available for users.

@using Data

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             AppointmentFormMode="SchedulerAppointmentFormMode.EditForm">
    <DxSchedulerWeekView/>
</DxScheduler>

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
        AppointmentsSource = AppointmentCollection.GetAppointments(),
        AppointmentMappings = new DxSchedulerAppointmentMappings() {
            Type = "AppointmentType",
            Start = "StartDate",
            End = "EndDate",
            Subject = "Caption",
            AllDay = "AllDay",
            Location = "Location",
            Description = "Description",
            LabelId = "Label",
            StatusId = "Status",
            RecurrenceInfo = "Recurrence"
        }
    };
}

Run Demo: Scheduler - User Action Restriction

You can also customize appointment forms.

See Also