Status Mappings
- 2 minutes to read
The table below lists mappings for Statuses.
Name | Type | Required? | Description |
---|---|---|---|
Object (any type) | Yes | The unique Status ID. Specifies the UserInterfaceObject.Id property value. | |
See description | No | A brush or color that specifies the Status appearance. Specifies the AppointmentStatus.Brush property value. The SchedulerDataStorage.Statuses.BrushSaving property value should correspond to the Brush field’s value type.
| |
String | No | The primary Status name. Specifies the UserInterfaceObject.DisplayName property value. Displayed in the Edit Appointment dialog. | |
String | No | The secondary Status name. Specifies the UserInterfaceObject.MenuCaption property value. Displayed in the “Show Time As” appointment context menu item. You can map this and the DisplayName properties to the same data source field. |
Troubleshooting
Error in the Brush mapping (ActualMappingException)
The following error can occur if the SchedulerDataStorage.Statuses.BrushSaving
property is set incorrectly:
DevExpress.XtraScheduler.Internal.ActualMappingException
HResult=0x80131500
Message=Error in the Brush mapping
...
Inner Exception 1:
InvalidCastException: Unable to cast object of type 'System.Drawing.SolidBrush' to type 'System.IConvertible'.
Fix
Set the SchedulerDataStorage.Statuses.BrushSaving
property to StatusMappingInfo.Brush.