Skip to main content
All docs
V25.1
  • DxSchedulerDayViewBase.CellMinWidth Property

    Specifies the base width of a day cell in day, week, and work week views, in pixels.

    Namespace: DevExpress.Blazor.Base

    Assembly: DevExpress.Blazor.v25.1.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 of a cell in day, week, and workweek views: this property does not take cell borders and paddings, and time ruler into account.

    The following code example sets the property value to 100:

    @using Data
    
    <DxScheduler StartDate="@DateTime.Today"
                 DataStorage="@DataStorage">
        <DxSchedulerDayView ShowWorkTimeOnly="true" 
                            DayCount="3"
                            CellMinWidth="100" />
    </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"
            }
        };
    }
    

    To specify the minimum cell width for other views, use the following properties:

    See Also