DxSchedulerDataStorage.AppointmentsSource Property
Specifies an appointment data source.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v25.2.dll
NuGet Package: DevExpress.Blazor
Declaration
public IEnumerable AppointmentsSource { get; set; }
Property Value
| Type | Description |
|---|---|
| IEnumerable | A collection of objects with appointment data. |
Remarks
Follow the steps below to bind the Scheduler component to data:
- Create a DxSchedulerDataStorage object. Use the constructor without parameters.
- Use the
AppointmentsSourceproperty 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
IEnumerable is a base interface for all non-generic collections that can be enumerated. This base interface does not support modifications. If you want to create an editable collection of appointments (with add/delete operations), use IEnumerable descendants that support modifications, such as IList.
<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"
}
};
}

Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AppointmentsSource 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.