Slot Templates
You can use the SlotTemplate and the AllDaySlotTemplate to customize the rendering of the slots in the Scheduler.
AllDaySlotTemplate
Use the AllDaySlotTemplate to provide a custom rendering for the cells in the Telerik Scheduler for Blazor that span across a full day. This template can be defined for the Day, Multiday, and Week Scheduler views.
The context of the template is a SchedulerAllDaySlotTemplateContext object that contains:
| Property | Type | Description |
|---|---|---|
Start | DateTime | The slot's start time. |
End | DateTime | The slot's end time. |
Resources | List<KeyValuePair<string, object> | A collection of resources for which the slot is defined. The collection is populated when the Resources and Resource Grouping features are used. |
SlotTemplate
Use the SlotTemplate to provide a custom rendering for the cells in the Telerik Scheduler for Blazor. This template can be defined for the Day, Multiday, Month, Timeline, and Week Scheduler views. The Agenda view is not included because it renders a summary table instead of time slots and does not expose a dedicated time-cell template.
The context of the template is a SchedulerSlotTemplateContext object that contains:
| Property | Type | Description |
|---|---|---|
Start | DateTime | The slot's start time. |
End | DateTime | The slot's end time. |
Resources | List<KeyValuePair<string, object> | A collection of resources for which the slot is defined. The collection is populated when the Resources and Resource Grouping features are used. |
When you use the SlotTemplate in the Timeline Scheduler view, and the content of the template is not a plain string, you must add the
!k-pos-absolutebuilt-in class to the custom element.