Class TreeItemSettings
The configuration used by a RadzenTreeItem to create child items.
Inheritance
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public class TreeItemSettings : object
Properties
Checkable
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<System.Object, System.Boolean> |
CheckableProperty
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 |
---|---|
System.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.
Declaration
public IEnumerable Data { get; set; }
Property Value
Type | Description |
---|---|
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.
Declaration
public Func<object, bool> Expanded { get; set; }
Property Value
Type | Description |
---|---|
Func<System.Object, System.Boolean> |
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.
Declaration
public Func<object, bool> HasChildren { get; set; }
Property Value
Type | Description |
---|---|
Func<System.Object, System.Boolean> |
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.
Declaration
public Func<object, bool> Selected { get; set; }
Property Value
Type | Description |
---|---|
Func<System.Object, System.Boolean> |
Template
Gets or sets the Template of a child item.
Declaration
public RenderFragment<RadzenTreeItem> Template { get; set; }
Property Value
Type | Description |
---|---|
RenderFragment<RadzenTreeItem> | The template. |
Text
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<System.Object, System.String> |
TextProperty
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 |
---|---|
System.String |