TreeItemSettings Class

The configuration used by a RadzenTreeItem to create child items.

Inheritance

Object

TreeItemSettings

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public class TreeItemSettings

Constructors

TreeItemSettingslink

The configuration used by a RadzenTreeItem to create child items.

Declaration
public TreeItemSettings()

Properties

Checkablelink

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

Declaration
public Func<object, bool> Checkable { get; set; }
Property Value
Type Description
Func<object, bool>Gets or sets the function which returns a value for the Checkable of a child item.

CheckablePropertylink

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

Declaration
public string CheckableProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property which provides the value for the Checkable of a child item.

Datalink

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.

Declaration
public Collections.IEnumerable Data { get; set; }
Property Value
Type Description
Collections.IEnumerableGets 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.

Expandedlink

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.

Declaration
public Func<object, bool> Expanded { get; set; }
Property Value
Type Description
Func<object, bool>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.

HasChildrenlink

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.

Declaration
public Func<object, bool> HasChildren { get; set; }
Property Value
Type Description
Func<object, bool>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.

Selectedlink

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.

Declaration
public Func<object, bool> Selected { get; set; }
Property Value
Type Description
Func<object, bool>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.

Templatelink

Gets or sets the Template of a child item.

Declaration
public RenderFragment<RadzenTreeItem> Template { get; set; }
Property Value
Type Description
RenderFragment<RadzenTreeItem>Gets or sets the Template of a child item.

Textlink

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

Declaration
public Func<object, string> Text { get; set; }
Property Value
Type Description
Func<object, string>Gets or sets the function which returns a value for the Text of a child item.

TextPropertylink

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

Declaration
public string TextProperty { get; set; }
Property Value
Type Description
stringGets or sets the name of the property which provides the value for the Text of a child item.
An error has occurred. This app may no longer respond until reloaded. Reload 🗙