Back to Devexpress

DxSchedulerMonthView.ResourceCaptionOrientation Property

blazor-devexpress-dot-blazor-dot-dxschedulermonthview-872347f8.md

latest2.5 KB
Original Source

DxSchedulerMonthView.ResourceCaptionOrientation Property

Arranges resource captions horizontally or vertically when appointments are grouped by date.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(Orientation.Vertical)]
[Parameter]
public Orientation ResourceCaptionOrientation { get; set; }

Property Value

TypeDefaultDescription
OrientationVertical

An enumeration value.

|

Available values:

NameDescription
Horizontal

Sets horizontal orientation.

| | Vertical |

Sets vertical orientation.

|

Remarks

The Scheduler component displays resources in vertical cells when appointments are grouped:

Use the ResourceCaptionOrientation property to display resource captions horizontally:

razor
<DxScheduler @bind-StartDate="@StartDate"
             DataStorage="@DataStorage"
             GroupType="SchedulerGroupType.Date">
    <DxSchedulerMonthView CellMinWidth="120" 
                          CellMinHeight="50" 
                          ResourceCaptionOrientation="Orientation.Horizontal"
                          VerticalResourceCellWidth="80" />
</DxScheduler>

You can use the following properties to adjust cell size in the month view:

VerticalResourceCellWidthSpecifies the resource cell width when appointments are grouped by date and resource captions are aligned horizontally.CellMinWidthSpecifies the base width of a day cell in the month view in pixels.CellMinHeightSpecifies the minimum cell height in the month view. See Also

DxSchedulerMonthView Class

DxSchedulerMonthView Members

DevExpress.Blazor Namespace