AppointmentMappingInfo.ResourceId Property

Gets or sets the data field to which the Appointment.ResourceId or the Appointment.ResourceIds property is bound.

Namespace: DevExpress.XtraScheduler

Assembly: DevExpress.XtraScheduler.v21.1.Core.dll


public virtual string ResourceId { get; set; }

Property Value

Type Default Description


A String value that specifies the name of the bound data field.


Use the ResourceId property to bind an appointment’s Appointment.ResourceId or Appointment.ResourceIdsproperty to a data field in the external data source. The data source is specified by the PersistentObjectStorage<T>.DataSource property of the AppointmentStorage.


If SchedulerControl.ResourceSharing is enabled, mapped data field should be a text field of sufficient length; otherwise map it to the field of any type but make sure that the type of the Resource ID field is the same in Appointments and Resources tables.

If resources are shared (the SchedulerControl.ResourceSharing option is true in a data-bound mode, or several resource identifiers are added to the Appointment.ResourceIds collection), the mapped data field contains a string in XML format. Since resource identifiers are objects, they are base-64 encoded.

The following string is the content of a data field mapped with the ResourceId mapping if Resources is switched on. An appointment is associated with resources having identifiers 1,2 and 3.


Set the SchedulerCompatibility.Base64XmlObjectSerialization to false to stop base64 serialization. In this situation the stored XML string changes as follows:

<ResourceId Type="System.Int32" Value="2" />
<ResourceId Type="System.Int32" Value="1" />
<ResourceId Type="System.Int32" Value="3" />
See Also