Table of Contents

Class TreeItemSettings

Namespace
Radzen
Assembly
Radzen.Blazor.dll

The configuration used by a RadzenTreeItem to create child items.

public class TreeItemSettings
Inheritance
TreeItemSettings
Inherited Members

Constructors

TreeItemSettings()

public TreeItemSettings()

Properties

Checkable

Gets or sets the function which returns a value for the Checkable of a child item.

public Func<object, bool> Checkable { get; set; }

Property Value

Func<object, bool>

CheckableProperty

Gets or sets the name of the property which provides the value for the Checkable of a child item.

public string CheckableProperty { get; set; }

Property Value

string

Data

Gets or sets the data from which child items will be created. The parent node enumerates the data and creates a new RadzenTreeItem for every item.

public IEnumerable Data { get; set; }

Property Value

IEnumerable

Expanded

Gets or sets a function which determines whether a child item is expanded. Called with an item from Data. By default all items are collapsed.

public Func<object, bool> Expanded { get; set; }

Property Value

Func<object, bool>

HasChildren

Gets or sets a function which returns whether a child item has children of its own. Called with an item from Data. By default all items are considered to have children.

public Func<object, bool> HasChildren { get; set; }

Property Value

Func<object, bool>

Selected

Gets or sets a function which determines whether a child item is selected. Called with an item from Data. By default all items are not selected.

public Func<object, bool> Selected { get; set; }

Property Value

Func<object, bool>

Template

Gets or sets the Template of a child item.

public RenderFragment<RadzenTreeItem> Template { get; set; }

Property Value

RenderFragment<RadzenTreeItem>

The template.

Text

Gets or sets the function which returns a value for the Text of a child item.

public Func<object, string> Text { get; set; }

Property Value

Func<object, string>

TextProperty

Gets or sets the name of the property which provides the value for the Text of a child item.

public string TextProperty { get; set; }

Property Value

string