Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTreeItem

    A component which is an item in a RadzenTree

    Inheritance
    System.Object
    RadzenTreeItem
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenTreeItem : IDisposable

    Properties

    Attributes

    Specifies additional custom attributes that will be rendered by the component.

    Declaration
    public IReadOnlyDictionary<string, object> Attributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<System.String, System.Object>

    The attributes.

    Checkable

    Gets or sets value indicating if the tree item checkbox can be checked.

    Declaration
    public bool Checkable { get; set; }
    Property Value
    Type Description
    System.Boolean

    ChildContent

    Gets or sets the child content.

    Declaration
    public RenderFragment ChildContent { get; set; }
    Property Value
    Type Description
    RenderFragment

    The child content.

    ContentCssClass

    Gets or sets the CSS classes added to the content.

    Declaration
    public string ContentCssClass { get; set; }
    Property Value
    Type Description
    System.String

    Data

    The children data.

    Declaration
    public IEnumerable Data { get; set; }
    Property Value
    Type Description
    IEnumerable

    Expanded

    Specifies whether this item is expanded. Set to false by default.

    Declaration
    public bool Expanded { get; set; }
    Property Value
    Type Description
    System.Boolean

    HasChildren

    Gets or sets a value indicating whether this instance has children.

    Declaration
    public bool HasChildren { get; set; }
    Property Value
    Type Description
    System.Boolean

    IconCssClass

    Gets or sets the CSS classes added to the icon.

    Declaration
    public string IconCssClass { get; set; }
    Property Value
    Type Description
    System.String

    LabelCssClass

    Gets or sets the CSS classes added to the label.

    Declaration
    public string LabelCssClass { get; set; }
    Property Value
    Type Description
    System.String

    ParentItem

    The RadzenTreeItem which contains this item.

    Declaration
    public RadzenTreeItem ParentItem { get; set; }
    Property Value
    Type Description
    RadzenTreeItem

    Selected

    Specifies whether this item is selected or not. Set to false by default.

    Declaration
    public bool Selected { get; set; }
    Property Value
    Type Description
    System.Boolean

    Template

    Gets or sets the template. Use it to customize the appearance of a tree item.

    Declaration
    public RenderFragment<RadzenTreeItem> Template { get; set; }
    Property Value
    Type Description
    RenderFragment<RadzenTreeItem>

    Text

    Gets or sets the text displayed by the tree item.

    Declaration
    public string Text { get; set; }
    Property Value
    Type Description
    System.String

    Tree

    The RadzenTree which this item is part of.

    Declaration
    public RadzenTree Tree { get; set; }
    Property Value
    Type Description
    RadzenTree

    Value

    Gets or sets the value of the tree item.

    Declaration
    public object Value { get; set; }
    Property Value
    Type Description
    System.Object

    Methods

    Dispose()

    Declaration
    public void Dispose()

    OnInitializedAsync()

    Declaration
    protected override async Task OnInitializedAsync()
    Returns
    Type Description
    Task

    SetParametersAsync(ParameterView)

    Declaration
    public override async Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters
    Returns
    Type Description
    Task

    Introducing Radzen Blazor Studio

    Radzen Blazor Studio is a software development environment that empowers developers to design, build and deploy Blazor applications without the traditional hurdles. Write less code and get more done.

    Learn More

    Download Now
    Download Now
    In This Article
    Back to top Radzen Blazor Components, © 2018-2025 Radzen. Source Code licensed under MIT