Demos About Radzen
Search Results for

    Show / Hide Table of Contents

    Class RadzenTreeItem

    A component which is an item in a RadzenTree

    Inheritance
    object
    ComponentBase
    RadzenTreeItem
    Implements
    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable
    Inherited Members
    ComponentBase.OnInitialized()
    ComponentBase.OnParametersSet()
    ComponentBase.OnParametersSetAsync()
    ComponentBase.StateHasChanged()
    ComponentBase.ShouldRender()
    ComponentBase.OnAfterRender(bool)
    ComponentBase.OnAfterRenderAsync(bool)
    ComponentBase.InvokeAsync(Action)
    ComponentBase.InvokeAsync(Func<Task>)
    ComponentBase.DispatchExceptionAsync(Exception)
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: Radzen.Blazor
    Assembly: Radzen.Blazor.dll
    Syntax
    public class RadzenTreeItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

    Constructors

    RadzenTreeItem()

    A component which is an item in a RadzenTree

    Declaration
    public RadzenTreeItem()

    Properties

    Attributes

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

    Declaration
    [Parameter(CaptureUnmatchedValues = true)]
    public IReadOnlyDictionary<string, object> Attributes { get; set; }
    Property Value
    Type Description
    IReadOnlyDictionary<string, object>

    The attributes.

    Checkable

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

    Declaration
    [Parameter]
    public bool Checkable { get; set; }
    Property Value
    Type Description
    bool

    ChildContent

    Gets or sets the child content.

    Declaration
    [Parameter]
    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
    [Parameter]
    public string ContentCssClass { get; set; }
    Property Value
    Type Description
    string

    Data

    The children data.

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

    Expanded

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

    Declaration
    [Parameter]
    public bool Expanded { get; set; }
    Property Value
    Type Description
    bool

    HasChildren

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

    Declaration
    [Parameter]
    public bool HasChildren { get; set; }
    Property Value
    Type Description
    bool

    IconCssClass

    Gets or sets the CSS classes added to the icon.

    Declaration
    [Parameter]
    public string IconCssClass { get; set; }
    Property Value
    Type Description
    string

    LabelCssClass

    Gets or sets the CSS classes added to the label.

    Declaration
    [Parameter]
    public string LabelCssClass { get; set; }
    Property Value
    Type Description
    string

    ParentItem

    The RadzenTreeItem which contains this item.

    Declaration
    [CascadingParameter]
    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
    [Parameter]
    public bool Selected { get; set; }
    Property Value
    Type Description
    bool

    Template

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

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

    Text

    Gets or sets the text displayed by the tree item.

    Declaration
    [Parameter]
    public string Text { get; set; }
    Property Value
    Type Description
    string

    Tree

    The RadzenTree which this item is part of.

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

    Value

    Gets or sets the value of the tree item.

    Declaration
    [Parameter]
    public object Value { get; set; }
    Property Value
    Type Description
    object

    Methods

    BuildRenderTree(RenderTreeBuilder)

    A component which is an item in a RadzenTree

    Declaration
    protected override void BuildRenderTree(RenderTreeBuilder __builder)
    Parameters
    Type Name Description
    RenderTreeBuilder __builder
    Overrides
    ComponentBase.BuildRenderTree(RenderTreeBuilder)

    Dispose()

    A component which is an item in a RadzenTree

    Declaration
    public void Dispose()

    OnInitializedAsync()

    A component which is an item in a RadzenTree

    Declaration
    protected override Task OnInitializedAsync()
    Returns
    Type Description
    Task
    Overrides
    ComponentBase.OnInitializedAsync()

    SetParametersAsync(ParameterView)

    A component which is an item in a RadzenTree

    Declaration
    public override Task SetParametersAsync(ParameterView parameters)
    Parameters
    Type Name Description
    ParameterView parameters
    Returns
    Type Description
    Task
    Overrides
    ComponentBase.SetParametersAsync(ParameterView)

    Implements

    IComponent
    IHandleEvent
    IHandleAfterRender
    IDisposable

    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