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

SchedulerDayOfWeekHeaderCellInfo Class

Stores information about a Scheduler header cell that displays a day of the week.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public class SchedulerDayOfWeekHeaderCellInfo

#Remarks

A SchedulerDayOfWeekHeaderCellInfo object is passed as the context parameter to date header templates. Use the Resource property to get the resource associated with the header cell or contains an empty resource item if no resource is assigned. The DayOfWeek property specifies the day of the week that corresponds the header cell’s date.

The following example marks days of the week with bold:

<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             GroupType="@SchedulerGroupType.Resource">
    <Views>
        <DxSchedulerMonthView>
            <DayOfWeekHeaderCellTemplate>
                <div style="width: 100%;">
                    <b>@context.DayOfWeek</b>
                </div>
            </DayOfWeekHeaderCellTemplate>
        </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"
        },
        ResourcesSource = ResourceCollection.GetResourcesForGrouping(),
        ResourceMappings = new DxSchedulerResourceMappings() {
            Id = "Id",
            Caption = "Name",
            BackgroundCssClass = "BackgroundCss",
            TextCssClass = "TextCss",
            CustomFieldMappings = new List<DxSchedulerCustomFieldMapping> {
                new DxSchedulerCustomFieldMapping{ Name = "ImageFileName", Mapping = "ImageFileName" }
            }
        }
    };
}

Scheduler - Resource Day of Week Template

#Inheritance

Object
SchedulerDayOfWeekHeaderCellInfo
See Also