Skip to main content

SchedulerItemBase.ResourceIds Property

Provides access to the collection of identifiers of the associated resources.

Namespace: DevExpress.Xpf.Scheduling

Assembly: DevExpress.Xpf.Scheduling.v24.2.dll

NuGet Package: DevExpress.Wpf.Scheduling

Declaration

public DXObservableCollection<object> ResourceIds { get; }

Property Value

Type Description
DevExpress.Mvvm.Native.DXObservableCollection<Object>

A collection of resource identifiers.

Remarks

To associate an appointment with a resource, add the resource’s SourceObjectContainer.Id value to the ResourceIds collection.

To assign an appointment to several resources, add their SourceObjectContainer.Id property values to the ResourceIds collection.

The image below demonstrates shared resources.

ResourceSharedDiagram

The ResourceId property returns the first resource identifier or the ResourceItemEmpty.Id value if no resources are assigned (default).

The SchedulerItemBaseMappings.ResourceId property specifies the mapping that binds the appointment’s ResourceId property to the data source field.

Note

If an appointment doesn’t belong to any particular resource, the scheduler shows it for all resources when the SchedulerControl.GroupType property is set to the SchedulerGroupType.Resource or SchedulerGroupType.Date value.

See Also