Skip to main content
A newer version of this page is available.
All docs
V18.2

AppointmentItem.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.v18.2.dll

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 AppointmentItem.ResourceIds property to get a collection of associated resources.

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