The configuration used by a RadzenTreeItem to create child items.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public class TreeItemSettingsThe configuration used by a RadzenTreeItem to create child items.
public TreeItemSettings()Gets or sets the function which returns a value for the Checkable of a child item.
public Func<object, bool> Checkable { get; set; }
| Type | Description |
|---|---|
| Func<object, bool> | Gets or sets the function which returns a value for the Checkable of a child item. |
Gets or sets the name of the property which provides the value for the Checkable of a child item.
public string CheckableProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property which provides the value for the Checkable of a child item. |
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 Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | 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. |
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; }
| 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. |
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; }
| 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. |
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; }
| 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. |
Gets or sets the Template of a child item.
public RenderFragment<RadzenTreeItem> Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment<RadzenTreeItem> | Gets or sets the Template of a child item. |
Gets or sets the function which returns a value for the Text of a child item.
public Func<object, string> Text { get; set; }
| Type | Description |
|---|---|
| Func<object, string> | Gets or sets the function which returns a value for the Text of a child item. |
Gets or sets the name of the property which provides the value for the Text of a child item.
public string TextProperty { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the name of the property which provides the value for the Text of a child item. |