New to Telerik UI for BlazorStart a free 30-day trial

Configures data binding settings for PanelBar components, mapping data model properties to PanelBar item properties. Use this component within "TelerikPanelBar.PanelBarBindings" to define how your data fields correspond to item text, icons, URLs, templates, and other display properties for different hierarchical levels.

Definition

Constructors

C#
public PanelBarBinding()

Methods

C#
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters:__builderRenderTreeBuilder

Overrides: ComponentBase.BuildRenderTree(RenderTreeBuilder)

C#
protected override Task OnParametersSetAsync()
Returns:

Task

Overrides: TreeBinding.OnParametersSetAsync()

Properties

Defines a custom template for rendering the collapsible content area of PanelBar items. Use this template to display rich content, custom layouts, or additional information when an item is expanded. The template receives the data item as context, allowing you to bind to any properties of your data model.

C#
[Parameter]
public RenderFragment<object> ContentTemplate { get; set; }

Specifies the data field name that contains the disabled state for PanelBar items. Set this to the property name in your data model that indicates whether an item should be disabled (non-interactive). Disabled items cannot be clicked, expanded, or collapsed. Example: "IsDisabled" or "Enabled". This parameter is required and cannot be null - an "ArgumentNullException" will be thrown if not specified.

C#
[Parameter]
public string DisabledField { get; set; }

Defines a custom template for rendering the clickable header area of PanelBar items. Use this template to customize the appearance of item headers with custom HTML, icons, or styled text. The template receives the data item as context, allowing you to display any properties from your data model in the header.

C#
[Parameter]
public RenderFragment<object> HeaderTemplate { get; set; }