DxSchedulerAppointmentMappings Class
Specifies how appointment fields from the data source are mapped to appointment properties in the Scheduler.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v20.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public class DxSchedulerAppointmentMappings :
DxSchedulerMappingsBase
Related API Members
The following members return DxSchedulerAppointmentMappings objects:
Remarks
Do the following to bind the Scheduler component to data:
- Create a DxSchedulerDataStorage object. Use the constructor without parameters.
- Use the DxSchedulerDataStorage.AppointmentsSource property to fill the storage with a collection of data objects.
- Create a DxSchedulerAppointmentMappings object and map data source fields to appointment properties.
- Assign the created object to the DxSchedulerDataStorage.AppointmentMappings property.
- Assign the data source to the Scheduler’s DataStorage property.
Note
You can also map source objects’ custom fields to a scheduler item’s custom properties. To do this, use the the CustomFieldMappings property.
<DxScheduler StartDate="@DateTime.Today" DataStorage="@DataStorage">
<DxSchedulerWeekView ShowWorkTimeOnly="true"></DxSchedulerWeekView>
</DxScheduler>
@code {
DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
AppointmentsSource = AppointmentCollection.GetAppointments(),
AppointmentMappings = new DxSchedulerAppointmentMappings() {
Type = "AppointmentType",
Start = "StartDate",
End = "EndDate",
Subject = "Caption",
AllDay = "AllDay",
Location = "Location",
Description = "Description",
LabelId = "Label",
StatusId = "Status",
RecurrenceInfo = "Recurrence"
}
};
}
Implements
Inheritance
Object
DevExpress.Blazor.Scheduler.Internal.BindableBase
DxSchedulerMappingsBase
DxSchedulerAppointmentMappings
See Also