Class
PanelBarBinding

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

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class PanelBarBinding : TreeBinding, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseTreeBindingPanelBarBinding

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members TreeBinding.OnInitialized()TreeBinding.Dispose()TreeBinding.ThrowIfParameterIsNull(object, string)TreeBinding.LevelTreeBinding.IdFieldTreeBinding.ParentIdFieldTreeBinding.HasChildrenFieldTreeBinding.ItemsFieldTreeBinding.TextFieldTreeBinding.IconFieldTreeBinding.UrlFieldComponentBase.OnInitializedAsync()ComponentBase.OnParametersSet()ComponentBase.StateHasChanged()ComponentBase.ShouldRender()ComponentBase.OnAfterRender(bool)ComponentBase.OnAfterRenderAsync(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

PanelBarBinding()

Declaration

cs-api-definition
public PanelBarBinding()

Properties

ContentTemplate

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.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<object> ContentTemplate { get; set; }

Property Value

RenderFragment<object>

DisabledField

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.

Declaration

cs-api-definition
[Parameter]
public string DisabledField { get; set; }

Property Value

string

HeaderTemplate

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.

Declaration

cs-api-definition
[Parameter]
public RenderFragment<object> HeaderTemplate { get; set; }

Property Value

RenderFragment<object>

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnParametersSetAsync()

Declaration

cs-api-definition
protected override Task OnParametersSetAsync()

Returns

Task

Overrides TreeBinding.OnParametersSetAsync()