# TreeItemSettings Class

The configuration used by a [RadzenTreeItem](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTreeItem.md) to create child items.

Namespace: [Radzen](https://blazor.radzen.com/docs/api/Radzen.md)

Assembly: Radzen.Blazor.dll

## Inheritance

- Object
- TreeItemSettings

## Syntax

```csharp
public class TreeItemSettings
```

## Constructors

| Constructor | Description |
|-------------|-------------|
| `public TreeItemSettings()` | The configuration used by a [RadzenTreeItem](https://blazor.radzen.com/docs/api/Radzen.Blazor.RadzenTreeItem.md) to create child items. |

## Properties

| Property | Type | Description |
|------|------|-------------|
| Checkable | `Func<object, bool>` | Gets or sets the function which returns a value for the Checkable of a child item. |
| CheckableProperty | `string` | Gets or sets the name of the property which provides the value for the Checkable of a child item. |
| Data | `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. |
| Expanded | `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. |
| HasChildren | `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. |
| Selected | `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. |
| Template | `RenderFragment<RadzenTreeItem>` | Gets or sets the Template of a child item. |
| Text | `Func<object, string>` | Gets or sets the function which returns a value for the Text of a child item. |
| TextProperty | `string` | Gets or sets the name of the property which provides the value for the Text of a child item. |

