Skip to main content

DxSchedulerMonthView.CellMinWidth Property

Specifies the base width of a day cell in the month view in pixels.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v25.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[DefaultValue(180)]
[Parameter]
public int CellMinWidth { get; set; }

Property Value

Type Default Description
Int32 180

The minimum width of a day cell in pixels.

Remarks

The CellMinWidth property specifies the base value used to calculate the minimum cell width: this property does not take cell borders, paddings, or time ruler into account.

You can use the VerticalResourceCellWidth propety to specify the resource cell width when resource captions are displayed horizontally.

@using Data

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage">
    <DxSchedulerMonthView MonthCount="2"
                          CellMinWidth="100"
                          ShowWorkDaysOnly="true" />
</DxScheduler>

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