blazor-devexpress-dot-blazor-4766b780.md
Lists the values that specify how the Scheduler appointments are grouped.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
public enum SchedulerGroupType
| Name | Description |
|---|---|
None |
Appointments are not grouped.
|
| Resource |
Appointments are grouped by resource.
|
| Date |
Appointments are grouped by date.
|
The following properties accept/return SchedulerGroupType values:
Use this enumeration’s values to specify how the Scheduler appointments are grouped.
The following code snippets display the Scheduler component grouped by resource …
<DxScheduler StartDate="DateTime.Today"
DataStorage="DataStorage"
GroupType="SchedulerGroupType.Resource">
<DxSchedulerDayView DayCount="3" ShowWorkTimeOnly="true"></DxSchedulerDayView>
<DxSchedulerWeekView />
<DxSchedulerWorkWeekView />
<DxSchedulerTimelineView />
</DxScheduler>
@code {
DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
AppointmentsSource = ResourceAppointmentCollection.GetAppointmentsForGrouping(),
AppointmentMappings = new DxSchedulerAppointmentMappings() {
Type = "AppointmentType",
Start = "StartDate",
End = "EndDate",
Subject = "Caption",
AllDay = "AllDay",
Location = "Location",
Description = "Description",
LabelId = "Label",
StatusId = "Status",
RecurrenceInfo = "Recurrence",
ResourceId = "ResourceId"
},
ResourcesSource = ResourceAppointmentCollection.GetResourcesForGrouping(),
ResourceMappings = new DxSchedulerResourceMappings() {
Id = "Id",
Caption = "Text",
BackgroundCssClass = "BackgroundCss",
TextCssClass = "TextCss"
}
};
}
… and by date.
<DxScheduler StartDate="@DateTime.Today"
DataStorage="@DataStorage"
GroupType="@SchedulerGroupType.Date" >
<DxSchedulerDayView DayCount="2" ShowWorkTimeOnly="true"></DxSchedulerDayView>
</DxScheduler>
@code {
DxSchedulerDataStorage DataStorage = new DxSchedulerDataStorage() {
AppointmentsSource = ResourceAppointmentCollection.GetAppointmentsForGrouping(),
AppointmentMappings = new DxSchedulerAppointmentMappings() {
Type = "AppointmentType",
Start = "StartDate",
End = "EndDate",
Subject = "Caption",
AllDay = "AllDay",
Location = "Location",
Description = "Description",
LabelId = "Label",
StatusId = "Status",
RecurrenceInfo = "Recurrence",
ResourceId = "ResourceId"
},
ResourcesSource = ResourceAppointmentCollection.GetResourcesForGrouping(),
ResourceMappings = new DxSchedulerResourceMappings() {
Id = "Id",
Caption = "Text",
BackgroundCssClass = "BackgroundCss",
TextCssClass = "TextCss"
}
};
}
See Also