ClassPanelBarBinding
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:
public class PanelBarBinding : TreeBinding, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseTreeBindingPanelBarBinding
Implements:
Inherited Members
Constructors
PanelBarBinding()
Declaration
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
[Parameter]
public RenderFragment<object> ContentTemplate { get; set; }
Property Value
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
[Parameter]
public string DisabledField { get; set; }
Property Value
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
[Parameter]
public RenderFragment<object> HeaderTemplate { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides