New to Telerik UI for Blazor? Download Free 30-day trial
Scheduler - Resources
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
- Resources.razor
- AppointmentService.cs
- AppointmentDto.cs
- RoomService.cs
- RoomDto.cs
- ManagerService.cs
- ManagerDto.cs
Description
The events in a calendar are often related to a specific resource – be that teams, people, meeting rooms or else. Telerik UI for Blazor Scheduler allows you to associate its appointments with the corresponding resource.
The resources are defined under the SchedulerResources
tag. A dedicated SchedulerResource
instance should be added for every resource you will be using.
You can associate the appointments with single or multiple resources depending on the use case and the desired result. For example, a meeting event can be associated with a team and meeting room resources. The appointments will be marked in different color depending on the associated resource. The resources are not mandatory, however, if you define them, all appointments must be associated with a resource.
The association of the appointments with the specific resource happens through the Field
parameter of the SchedulerResource
instance. It should point to the name of the field in the appointment model that contains the resource information.
Provide a collection of the available resource options to the Data
parameter of the SchedulerResource
tag. For example, if the resource is “Meeting room”, the Data
of the SchedulerResource
should contain the available meeting rooms.
The Scheduler allows editing of the appointment resource. When the edit form is opened, a dropdown with the resource options will be rendered, so the user can change the resource the current appointment is associated with.
The Blazor Scheduler lets you group the appointments by their resource so they will be displayed in separate calendars for better visibility. Additionally, you can implement custom filtering, so only the appointments associated with the filtered resource will be visible.
The current demo showcases multiple resource usage in Blazor Scheduler. The appointments are associated with “Manager” and “Room” resources.