New to Telerik UI for BlazorStart 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 ContentTemplate is defined under the PanelBarBinding tag.
  • It provides a context object 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 one ContentTemplate for all items at the same level. If the content of these items should be different, use conditional statements inside the template.
  • A ContentTemplate displays like a child item. It is rendered only for the items, which have no children.

Use ContentTemplate to customize the content items

Example
View Source
Loading ...

See Also

In this article
ContentTemplateSee Also
Not finding the help you need?
Contact Support