New to Telerik UI for Blazor? Download free 30-day trial

Blazor Sections Don't Show in Telerik Blazor Components


Product UI for Blazor
Version 5.0 and above
.NET version 8 and above


The ToolBarButton inside the SectionOutlet below doesn't render. How to use Blazor sections with the Telerik Blazor ToolBar and reusable SectionOutlet instances?

ToolBar with SectionOutlet

    <SectionOutlet SectionName="ToolbarOutlet"></SectionOutlet>

SectionContent definition

<SectionContent SectionName="ToolbarOutlet">


Some of the Telerik Blazor components rely on internal cascading values and parameters to send component instances and configuration settings from parent components (for example, the ToolBar) to child components (for example, the ToolBarButton).

Matching Section and Outlet components can reside anywhere in the app, including in different files. For the transfer of cascading values and parameters, the placement of the SectionContent is crucial. This means that a ToolBarButton inside a SectionContent is effectively outside the ToolBar and cannot receive cascading values from it.

As a result, Telerik Blazor components cannot support such configurations. The same problem will occur with a similar setup with Grid columns, Form items, TabStrip tabs, Wizard steps and any other component, which defines items as a declarative collection of child tags.


Use SectionOutlet inside Telerik Blazor components only inside officially documented templates.

Test example that shows working and non-working Section integration with Telerik Blazor components

@using Microsoft.AspNetCore.Components.Sections

<p>Default Configuration</p>
    <ToolBarButton>ToolBar Button</ToolBarButton>

<p>Broken with Section and ToolBarButton</p>
    <SectionOutlet SectionName="ToolbarOutlet1"></SectionOutlet>

<SectionContent SectionName="ToolbarOutlet1">
    <ToolBarButton>ToolBar Button</ToolBarButton>

<p>Works with Section, ToolBarTemplateItem and TelerikButton</p>
        <SectionOutlet SectionName="ToolbarOutlet2"></SectionOutlet>

<SectionContent SectionName="ToolbarOutlet2">
    <TelerikButton>Telerik Button</TelerikButton>


We don't recommend and don't officially support custom markup or custom components inside our components, unless the custom content is placed inside a documented template (such as the ToolBar ToolBarTemplateItem) or containers that are intended for random content (such as the Window WindowContent). Currently it is possible to place invalid custom content inside Telerik components because Blazor RenderFragments don't support restrictions for child components and tags.

See Also

In this article