Skip to main content
A newer version of this page is available. .
All docs
V23.1

DxScheduler.AllowResizeAppointment Property

Specifies whether users can resize appointments.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(true)]
[Parameter]
public bool AllowResizeAppointment { get; set; }

Property Value

Type Default Description
Boolean true

true to allow users to resize appointments; otherwise, false.

Remarks

The Scheduler allows users to move and resize appointments to modify their start and end dates.

You can set the AllowResizeAppointment and AllowDragAppointment properties to false to prevent users from resizing and dragging appointments.

@using Data

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             AllowCreateAppointment="false"
             AllowEditAppointment="false"
             AllowDeleteAppointment="false">
    <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

See Also