Back to Devexpress

SchedulerControl.GroupType Property

wpf-devexpress-dot-xpf-dot-scheduling-dot-schedulercontrol-d71da99a.md

latest4.8 KB
Original Source

SchedulerControl.GroupType Property

Gets or sets the type of grouping applied to the Scheduler. This is a dependency property.

Namespace : DevExpress.Xpf.Scheduling

Assembly : DevExpress.Xpf.Scheduling.v25.2.dll

NuGet Package : DevExpress.Wpf.Scheduling

Declaration

csharp
public SchedulerGroupType GroupType { get; set; }
vb
Public Property GroupType As SchedulerGroupType

Property Value

TypeDescription
SchedulerGroupType

A SchedulerGroupType enumeration value that specifies how appointments are grouped within the SchedulerControl.

|

Available values:

NameDescription
None

No grouping is applied.

| | Date |

Grouping by dates. Appointments are grouped by dates.

| | Resource |

Grouping by resources. Appointments are grouped by resources.

|

Remarks

Use the GroupType property to specify one of the following grouping types:

By Date

By Resource

By None

Grouping at the view level is currently unavailable.

The following code snippets (auto-collected from DevExpress Examples) contain references to the GroupType 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.

wpf-scheduler-use-scheduler-report-to-print-and-export-appointments/CS/PrintingExample/MainWindow.xaml#L25

xml
CommandBarStyle="Ribbon"
GroupType="Resource">
<dxsch:DayView ResourcesPerPage="3" ShowAllDayArea="False" />

wpf-scheduler-generate-time-scales-from-view-model-collection/CS/WpfSchedulerTimelineScalesTemplate/MainWindow.xaml#L40

xml
<Grid>
    <dxsch:SchedulerControl x:Name="scheduler" GroupType="None" Start="{Binding Start, Mode=TwoWay}" AllowAppointmentConflicts="True">
        <dxsch:TimelineView x:Name="timelineView" IntervalCount="8" TimeScalesSource="{Binding TimeScales}" TimeScaleTemplateSelector="{StaticResource TimeScaleTemplateSelector}"/>

wpf-scheduler-highlight-time-intervals/CS/SchedulerCellTemplate/MainWindow.xaml#L26

xml
</dxlc:LayoutControl>
<dxsch:SchedulerControl x:Name="scheduler" GroupType="Resource" Start="{Binding Start, Mode=TwoWay}" AllowAppointmentConflicts="True">
    <dxsch:DayView

wpf-scheduler-obtain-selected-appointment-resource-and-time-interval/CS/DXSchedulerSelection/MainWindow.xaml#L50

xml
FirstDayOfWeek="Monday"
GroupType="Resource">
<dxsch:DayView

wpf-scheduler-specify-custom-work-time-intervals/CS/CustomWorkTimeExample/MainWindow.xaml#L30

xml
<dxsch:SchedulerControl CustomWorkTime="SchedulerControl_CustomWorkTime"
                        GroupType="Resource"
                        ResourceColors="{StaticResource MyResourceColors}">

See Also

SchedulerControl Class

SchedulerControl Members

DevExpress.Xpf.Scheduling Namespace