Table of Contents

Class RadzenTreeItem

Namespace
Radzen.Blazor
Assembly
Radzen.Blazor.dll

A component which is an item in a RadzenTree

public class RadzenTreeItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance
RadzenTreeItem
Implements
Inherited Members

Constructors

RadzenTreeItem()

public RadzenTreeItem()

Properties

Attributes

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

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

Property Value

IReadOnlyDictionary<string, object>

The attributes.

Checkable

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

[Parameter]
public bool Checkable { get; set; }

Property Value

bool

ChildContent

Gets or sets the child content.

[Parameter]
public RenderFragment ChildContent { get; set; }

Property Value

RenderFragment

The child content.

Data

The children data.

[Parameter]
public IEnumerable Data { get; set; }

Property Value

IEnumerable

Expanded

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

[Parameter]
public bool Expanded { get; set; }

Property Value

bool

HasChildren

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

[Parameter]
public bool HasChildren { get; set; }

Property Value

bool

ParentItem

The RadzenTreeItem which contains this item.

[CascadingParameter]
public RadzenTreeItem ParentItem { get; set; }

Property Value

RadzenTreeItem

Selected

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

[Parameter]
public bool Selected { get; set; }

Property Value

bool

Template

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

[Parameter]
public RenderFragment<RadzenTreeItem> Template { get; set; }

Property Value

RenderFragment<RadzenTreeItem>

Text

Gets or sets the text displayed by the tree item.

[Parameter]
public string Text { get; set; }

Property Value

string

Tree

The RadzenTree which this item is part of.

[CascadingParameter]
public RadzenTree Tree { get; set; }

Property Value

RadzenTree

Value

Gets or sets the value of the tree item.

[Parameter]
public object Value { get; set; }

Property Value

object

Methods

BuildRenderTree(RenderTreeBuilder)

protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder RenderTreeBuilder

Dispose()

public void Dispose()

OnInitializedAsync()

protected override Task OnInitializedAsync()

Returns

Task

SetParametersAsync(ParameterView)

public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters ParameterView

Returns

Task