A component which is an item in a RadzenTree
Object
ComponentBase
IComponent
IHandleEvent
IHandleAfterRender
ComponentBase.OnInitialized
ComponentBase.OnParametersSet
ComponentBase.OnParametersSetAsync
ComponentBase.StateHasChanged
ComponentBase.ShouldRender
ComponentBase.OnAfterRender
ComponentBase.OnAfterRenderAsync
ComponentBase.InvokeAsync
ComponentBase.DispatchExceptionAsync
ComponentBase.RendererInfo
ComponentBase.Assets
ComponentBase.AssignedRenderMode
Namespace: Radzen.Blazor
Assembly: Radzen.Blazor.dll
public class RadzenTreeItem : ComponentBase, IComponent, IHandleEvent, IHandleAfterRenderSpecifies additional custom attributes that will be rendered by the component.
public IReadOnlyDictionary<string, object> Attributes { get; set; }
| Type | Description |
|---|---|
| IReadOnlyDictionary<string, object> | Specifies additional custom attributes that will be rendered by the component. |
Gets or sets value indicating if the tree item checkbox can be checked.
public bool Checkable { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets value indicating if the tree item checkbox can be checked. |
Gets or sets the child content.
public RenderFragment ChildContent { get; set; }
| Type | Description |
|---|---|
| RenderFragment | Gets or sets the child content. |
Gets or sets the CSS classes added to the content.
public string ContentCssClass { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the CSS classes added to the content. |
The children data.
public Collections.IEnumerable Data { get; set; }
| Type | Description |
|---|---|
| Collections.IEnumerable | The children data. |
Specifies whether this item is expanded. Set to false by default.
public bool Expanded { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether this item is expanded. Set to false by default. |
Gets or sets a value indicating whether this instance has children.
public bool HasChildren { get; set; }
| Type | Description |
|---|---|
| bool | Gets or sets a value indicating whether this instance has children. |
Gets or sets the CSS classes added to the icon.
public string IconCssClass { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the CSS classes added to the icon. |
Gets or sets the CSS classes added to the label.
public string LabelCssClass { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the CSS classes added to the label. |
The RadzenTreeItem which contains this item.
public RadzenTreeItem ParentItem { get; set; }
| Type | Description |
|---|---|
| RadzenTreeItem | The RadzenTreeItem which contains this item. |
Specifies whether this item is selected or not. Set to false by default.
public bool Selected { get; set; }
| Type | Description |
|---|---|
| bool | Specifies whether this item is selected or not. Set to false by default. |
Gets or sets the template. Use it to customize the appearance of a tree item.
public RenderFragment<RadzenTreeItem> Template { get; set; }
| Type | Description |
|---|---|
| RenderFragment<RadzenTreeItem> | Gets or sets the template. Use it to customize the appearance of a tree item. |
Gets or sets the text displayed by the tree item.
public string Text { get; set; }
| Type | Description |
|---|---|
| string | Gets or sets the text displayed by the tree item. |
The RadzenTree which this item is part of.
public RadzenTree Tree { get; set; }
| Type | Description |
|---|---|
| RadzenTree | The RadzenTree which this item is part of. |
Gets or sets the value of the tree item.
public object Value { get; set; }
| Type | Description |
|---|---|
| object | Gets or sets the value of the tree item. |
protected override void BuildRenderTree(Rendering.RenderTreeBuilder __builder)
| Type | Name | Description |
|---|---|---|
| Rendering.RenderTreeBuilder | __builder |
protected override Task OnInitializedAsync()
| Type | Description |
|---|---|
| Task |
public override Task SetParametersAsync(ParameterView parameters)
| Type | Name | Description |
|---|---|---|
| ParameterView | parameters |
| Type | Description |
|---|---|
| Task |
Toggles the checked state of the tree node in response to a mouse event, if checkboxes are enabled and the node is checkable.
public Task ToggleChecked()
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous toggle operation. |