New to Telerik UI for Blazor? Start a free 30-day trial
ContentTemplate
Updated on Sep 3, 2026
You can control and customize the rendering of the content items in the PanelBar with a ContentTemplate. Here is how to use it.
- The
ContentTemplateis defined under thePanelBarBindingtag. - It provides a
contextobject that you can cast to the type, which the PanelBar is bound to. - The template can include other Razor components or executable code.
- Similar to
PanelBarBindings, there can be oneContentTemplatefor all items at the same level. If the content of these items should be different, use conditional statements inside the template. - A
ContentTemplatedisplays like a child item. It is rendered only for the items, which have no children.
Use ContentTemplate to customize the content items
Loading ...