Skip to main content

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