Back to Devexpress

DxSchedulerTimelineView.ResourceCaptionOrientation Property

blazor-devexpress-dot-blazor-dot-dxschedulertimelineview-c7c98754.md

latest2.5 KB
Original Source

DxSchedulerTimelineView.ResourceCaptionOrientation Property

Arranges resource captions horizontally or vertically when appointments are grouped.

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 rotate resource captions:

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

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

VerticalResourceCellWidthSpecifies the resource cell width when appointments are grouped and captions are aligned horizontally.CellMinWidthSpecifies the base width of a single division of the timescale, in pixels.CellMinHeightSpecifies the minimum cell height in the timeline view. See Also

DxSchedulerTimelineView Class

DxSchedulerTimelineView Members

DevExpress.Blazor Namespace