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

SchedulerItemBase.ResourceId Property

Gets or sets the identifier of the associated resource, or the first resource identifier if an appointment has several assigned resources.

Namespace: DevExpress.Xpf.Scheduling

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

NuGet Package: DevExpress.Wpf.Scheduling

#Declaration

public object ResourceId { get; set; }

#Property Value

Type Description
Object

A Object value that is the resource’s unique identifier or the ResourceItemEmpty.Id value if no resources are assigned (default).

#Remarks

To associate an appointment with a resource, set the appointment’s ResourceId property to the resource’s SourceObjectContainer.Id value. For standalone appointments, the ResourceId property is set to the ResourceItemEmpty.Id value.

Use the SchedulerItemBase.ResourceIds property to get a collection of associated resources.

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