Back to Devexpress

DxSchedulerAppointmentMappings.ResourceId Property

blazor-devexpress-dot-blazor-dot-dxschedulerappointmentmappings-01fbc58b.md

latest2.4 KB
Original Source

DxSchedulerAppointmentMappings.ResourceId Property

Maps appointment resource IDs.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
public DxSchedulerMapping ResourceId { get; set; }

Property Value

TypeDescription
DxSchedulerMapping

A DxSchedulerMapping object that maps the data field to the ResourceId appointment property.

|

Remarks

razor
<DxScheduler StartDate="@DateTime.Today"
             DataStorage="@DataStorage"
             GroupType="@SchedulerGroupType.Resource" >
    <DxSchedulerDayView DayCount="2" ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>

@code {
    DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
        AppointmentsSource = ResourceAppointmentCollection.GetAppointmentsForGrouping(),
        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 = ResourceAppointmentCollection.GetResourcesForGrouping(),
        ResourceMappings = new DxSchedulerResourceMappings() {
            Id = "Id",
            Caption = "Text",
            BackgroundCssClass = "BackgroundCss",
            TextCssClass = "TextCss"
        }
    };
}

Run Demo: Scheduler - Resources

YouTube video

See Also

DxSchedulerAppointmentMappings Class

DxSchedulerAppointmentMappings Members

DevExpress.Blazor Namespace