Back to Devexpress

DxScheduler.ResourceColorInHeaderVisible Property

blazor-devexpress-dot-blazor-dot-dxscheduler-37d78d08.md

latest2.3 KB
Original Source

DxScheduler.ResourceColorInHeaderVisible Property

Specifies whether a resource color is applied to the corresponding group’s header.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(true)]
[Parameter]
public bool ResourceColorInHeaderVisible { get; set; }

Property Value

TypeDefaultDescription
Booleantrue

true to apply the color; otherwise, false.

|

Remarks

If you set the ResourceColorInHeaderVisible property to true, the resource color is applied to the resource group’s header.

razor
<DxScheduler StartDate="DateTime.Today"
             DataStorage="DataStorage"
             GroupType="SchedulerGroupType.Resource"
             ResourceColorInHeaderVisible="true">
    <DxSchedulerDayView DayCount="3" ShowWorkTimeOnly="true"></DxSchedulerDayView>
    <DxSchedulerWeekView />
    <DxSchedulerWorkWeekView />
    <DxSchedulerTimelineView />
</DxScheduler>

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
        AppointmentsSource = ResourceAppointmentCollection.GetAppointmentsForGrouping(),
        AppointmentMappings = new DxSchedulerAppointmentMappings() {
            Type = "AppointmentType",
            Start = "StartDate",
            End = "EndDate",
            Subject = "Caption",
            ResourceId = "ResourceId"
        },
        ResourcesSource = ResourceAppointmentCollection.GetResourcesForGrouping(),
        ResourceMappings = new DxSchedulerResourceMappings() {
            Id = "Id",
            Caption = "Text",
            Color = "Color"
        }
    };
}

Otherwise, the resource group’s header is not colored.

See Also

DxScheduler Class

DxScheduler Members

DevExpress.Blazor Namespace