Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxSchedulerMonthView.VerticalResourceHeaderCellTemplate Property

Specifies the template for vertical resource header cells in the Scheduler.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[Parameter]
public RenderFragment<SchedulerResourceHeaderCellInfo> VerticalResourceHeaderCellTemplate { get; set; }

#Property Value

Type Description
RenderFragment<SchedulerResourceHeaderCellInfo>

The resource header cell template.

#Remarks

This template accepts a SchedulerResourceHeaderCellInfo object as the context parameter. You can use the parameter’s Intervals property to get intervals to which the cell belongs. The parameter’s Resource property specifies the resource associated with the cell or contains an empty resource item if no resource is assigned.

The following example makes vertical resource headers bold:

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             GroupType="@SchedulerGroupType.Date">
    <Views>
        <DxSchedulerMonthView>
            <VerticalResourceHeaderCellTemplate>
                <div style="width: 100%;">
                    <b>@context.Resource.Caption</b>
                </div>
            </VerticalResourceHeaderCellTemplate>
        </DxSchedulerMonthView>
    </Views>
</DxScheduler>

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

Scheduler - Vertical Resource Header Template

To specify the template for horizontal resource header cells, use the HorizontalResourceHeaderCellTemplate property.

See Also