All docs
V20.1
20.2 (EAP/Beta)
20.1
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

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.v20.1.dll

Declaration

public object ResourceId { get; set; }
Public Property ResourceId As Object

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