Skip to main content

SchedulerDataStorage.Resources Property

Gets the object which manages resources for appointments.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v24.1.dll

NuGet Package: DevExpress.Win.Scheduler

Declaration

public ResourceDataStorage Resources { get; }

Property Value

Type Description
ResourceDataStorage

A ResourceStorage object which manages resources for appointments.

Remarks

Appointments can be associated with resources. A resource is an object which has the following attributes: a unique identifier, caption, color and an image. Consider an application which schedules rooms in a hotel. In this application hotel rooms can be represented as resources which can be occupied by tourists.

The Resources property maintains a collection of resources for appointments. You can load resources from a data source by specifying the DataMember and DataSource properties of the ResourcesStorage object. Or you can populate the collection manually by adding items via the ResourceStorageBase.Items property.

Each item in the collection is an object which exposes the Resource interface.

In bound mode, the XtraScheduler control obtains information on appointments from a database which is specified by the DataMember and DataSource properties of the SchedulerDataStorage.Appointments object. In this mode resources from the Resources collection can be associated with the appointments via the AppointmentMappingInfo.ResourceId property.

In unbound mode, resources can be associated with appointments manually via the Appointment.ResourceId property.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Resources property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also