# Scheduler Resource Grouping

The Telerik Scheduler for Blazor can group appointments by one or more resources. All available [Scheduler views](https://www.telerik.com/blazor-ui/documentation/components/scheduler/views/overview) support horizontal and vertical grouping, except the Agenda view, which only uses vertical grouping.

> tip This article requires familiarity with [Scheduler Resources](https://www.telerik.com/blazor-ui/documentation/components/scheduler/resources).

## Basics

When Scheduler grouping is active, the component renders multiple view tables in horizontal and vertical orientation. The date or hour headers repeat for each group (resource value).

Moving an appointment from one group to another is allowed. On drop, the appointment resource changes alongside the start date and the app should persist these changes in the [`OnUpdate` event handler](https://www.telerik.com/blazor-ui/documentation/components/scheduler/editing/edit-appointments).

To configure resource display in groups:

1. [Configure the Scheduler component to work with resources](https://www.telerik.com/blazor-ui/documentation/components/scheduler/resources).
2. Add the `<SchedulerGroupSettings>` tag inside `<SchedulerSettings>`.
3. Set the `Resources` parameter to a `List<string>` of one or more resource names that match property names in the Scheduler model class.
4. (optional) Set the `Orientation` parameter to a member of the [`SchedulerGroupOrientation`](https://www.telerik.com/blazor-ui/documentation/api/telerik.blazor.schedulergrouporientation) enum. The default value is `Horizontal`.

> caption Scheduler Group Settings

```RAZOR.skip-repl
<TelerikScheduler>
    <SchedulerSettings>
        <SchedulerGroupSettings Orientation="@SchedulerGroupOrientation.Vertical"
                                Resources="@GroupResources" />
    </SchedulerSettings>
</TelerikScheduler>

@code {
    private readonly List<string> GroupResources = new()
    {
        nameof(Appointment.Room),
        nameof(Appointment.Manager)
    };
}
```

## Example

> caption Scheduler Resource Grouping

<demo metaUrl="client/scheduler/resource-grouping/example-1/" height="780"></demo>

## See Also

* [Live Demo: Scheduler Grouping](https://demos.telerik.com/blazor-ui/scheduler/grouping)
* [Scheduler Overview](https://www.telerik.com/blazor-ui/documentation/components/scheduler/overview)
