skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class TelerikTreeList<TItem>

The class for the Telerik TreeList component.

Inheritance
System.Object
BaseComponent
DataBoundComponent<TItem>
GridBase<TItem>
TableGridBase<TItem, TreeListCommandEventArgs>
TelerikTreeList<TItem>
Inherited Members
TableGridBase<TItem, TreeListCommandEventArgs>.Dispose()
TableGridBase<TItem, TreeListCommandEventArgs>.ResetEditContext()
TableGridBase<TItem, TreeListCommandEventArgs>.PageData()
TableGridBase<TItem, TreeListCommandEventArgs>.GetItemFromDropIndex(String)
TableGridBase<TItem, TreeListCommandEventArgs>.GetItemFromDropIndex(Int32)
TableGridBase<TItem, TreeListCommandEventArgs>.DialogFactory
TableGridBase<TItem, TreeListCommandEventArgs>.Id
TableGridBase<TItem, TreeListCommandEventArgs>.ColumnVirtualization
TableGridBase<TItem, TreeListCommandEventArgs>.AutoGenerateColumns
TableGridBase<TItem, TreeListCommandEventArgs>.Navigable
TableGridBase<TItem, TreeListCommandEventArgs>.RowTemplate
TableGridBase<TItem, TreeListCommandEventArgs>.NoDataTemplate
TableGridBase<TItem, TreeListCommandEventArgs>.Resizable
TableGridBase<TItem, TreeListCommandEventArgs>.Reorderable
TableGridBase<TItem, TreeListCommandEventArgs>.Sortable
TableGridBase<TItem, TreeListCommandEventArgs>.SortMode
TableGridBase<TItem, TreeListCommandEventArgs>.FilterMenuType
TableGridBase<TItem, TreeListCommandEventArgs>.SelectedItems
TableGridBase<TItem, TreeListCommandEventArgs>.SelectedItemsChanged
TableGridBase<TItem, TreeListCommandEventArgs>.EnableLoaderContainer
TableGridBase<TItem, TreeListCommandEventArgs>.RowDraggable
TableGridBase<TItem, TreeListCommandEventArgs>.ConfirmDelete
TableGridBase<TItem, TreeListCommandEventArgs>.RowHeight
TableGridBase<TItem, TreeListCommandEventArgs>.FilterRowDebounceDelay
TableGridBase<TItem, TreeListCommandEventArgs>.OnCreate
TableGridBase<TItem, TreeListCommandEventArgs>.OnUpdate
TableGridBase<TItem, TreeListCommandEventArgs>.OnDelete
TableGridBase<TItem, TreeListCommandEventArgs>.OnEdit
TableGridBase<TItem, TreeListCommandEventArgs>.OnAdd
TableGridBase<TItem, TreeListCommandEventArgs>.OnCancel
GridBase<TItem>.Width
GridBase<TItem>.Height
GridBase<TItem>.PageSizeChanged
GridBase<TItem>.PageSize
GridBase<TItem>.Page
GridBase<TItem>.PageChanged
GridBase<TItem>.Pageable
GridBase<TItem>.OnModelInit
GridBase<TItem>.TotalCount
DataBoundComponent<TItem>.Rebind()
DataBoundComponent<TItem>.Data
BaseComponent.ShouldRender()
BaseComponent.OnInitializedAsync()
BaseComponent.InitLocalizer()
BaseComponent.ThrowIfParameterIsNull(Object, String)
BaseComponent.HaveOptionsChanged(IDictionary<String, Object>, IDictionary<String, Object>)
BaseComponent.GetClassString(String[])
BaseComponent.InvokeAsync<T>(String, Object[])
BaseComponent.InvokeAsync<T>(String, CancellationToken, Object[])
BaseComponent.InvokeVoidAsync(String, Object[])
BaseComponent.InvokeComponentMethodAsync<T>(String, Object[])
BaseComponent.InvokeComponentMethodAsync<T>(String, CancellationToken, Object[])
BaseComponent.InvokeVoidComponentMethodAsync(String, Object[])
BaseComponent.InvokeDisposeAsync()
BaseComponent.StateHasChanged()
BaseComponent.RootComponent
BaseComponent.Class
Namespace: Telerik.Blazor.Components
Assembly: Telerik.Blazor.dll

Syntax

public class TelerikTreeList<TItem> : TableGridBase<TItem, TreeListCommandEventArgs>, IDisposable, IPagerContainer, IRowDraggableContainer, IValidationContainer, IPopupEditSettingsContainer, ITreeListDataStoreContainer<TItem>, IColumnContainer
Type Parameters
TItem

The type of the model to which the TreeList is bound.

Properties

EditFieldOnStateInit

Declaration
protected string EditFieldOnStateInit { get; set; }
Property Value
System.String

EditMode

Defines the EditMode of the TreeList. Supports None, Inline, Popup and Incell editing. The Default Option is None.

Declaration
public TreeListEditMode EditMode { get; set; }
Property Value
TreeListEditMode

FilterMode

Defines the Filter Mode of the Component.

Declaration
public TreeListFilterMode FilterMode { get; set; }
Property Value
TreeListFilterMode

HasChildrenField

Defines the HasChildren DataField of the DataSource.

Declaration
public string HasChildrenField { get; set; }
Property Value
System.String

IdField

Defines the Id DataField of the DataSource.

Declaration
public string IdField { get; set; }
Property Value
System.String

ItemsField

Defines the Items DataField of the DataSource that contains the child nodes.

Declaration
public string ItemsField { get; set; }
Property Value
System.String

OnCollapse

Fires when a row is collapsed.

Declaration
public EventCallback<TreeListCollapseEventArgs> OnCollapse { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListCollapseEventArgs>

OnExpand

Fires when a row is expanded.

Declaration
public EventCallback<TreeListExpandEventArgs> OnExpand { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListExpandEventArgs>

OnRowClick

Fires when the user clicks on a row, or presses enter.

Declaration
public EventCallback<TreeListRowClickEventArgs> OnRowClick { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListRowClickEventArgs>

OnRowContextMenu

Fires when the user triggers contextmenu event with click or context menu button.

Declaration
public EventCallback<TreeListRowClickEventArgs> OnRowContextMenu { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListRowClickEventArgs>

OnRowDoubleClick

Fires when the user double-clicks on a row.

Declaration
public EventCallback<TreeListRowClickEventArgs> OnRowDoubleClick { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListRowClickEventArgs>

OnRowDrop

Fired when a row is dropped.

Declaration
public EventCallback<TreeListRowDropEventArgs<TItem>> OnRowDrop { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListRowDropEventArgs<TItem>>

OnRowRender

Called each time a row is rendered. Use this to add custom classes to the row based on the data item.

Declaration
public Action<TreeListRowRenderEventArgs> OnRowRender { get; set; }
Property Value
System.Action<TreeListRowRenderEventArgs>

OnStateChanged

Fires on user interaction that causes changes in the TreeListState<TItem>.

Declaration
public EventCallback<TreeListStateEventArgs<TItem>> OnStateChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListStateEventArgs<TItem>>

OnStateInit

Invoked when the TreeList is initialized and state could be loaded. Useful when you'd like to persist changed on page reloads.

Declaration
public EventCallback<TreeListStateEventArgs<TItem>> OnStateInit { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<TreeListStateEventArgs<TItem>>

ParentIdField

Defines the ParentId DataField of the DataSource. Use this DataField when the component is bound to a flat data structure.

Declaration
public string ParentIdField { get; set; }
Property Value
System.String

SelectionMode

Defines the Selection Mode of the TreeList.

Declaration
public TreeListSelectionMode SelectionMode { get; set; }
Property Value
TreeListSelectionMode

TreeListPagerTemplate

Defines the template that will be displayed instead of the Pager.

Declaration
public RenderFragment TreeListPagerTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment

TreeListSettings

Declaration
public RenderFragment TreeListSettings { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment

Methods

AutoFitAllColumns()

Declaration
public void AutoFitAllColumns()

AutoFitAllColumnsAsync()

Declaration
public Task AutoFitAllColumnsAsync()
Returns
System.Threading.Tasks.Task

AutoFitColumn(String)

Declaration
public void AutoFitColumn(string id)
Parameters
System.String id

AutoFitColumnAsync(String)

Declaration
public Task AutoFitColumnAsync(string id)
Parameters
System.String id

Returns
System.Threading.Tasks.Task

AutoFitColumns(IEnumerable<String>)

Declaration
public void AutoFitColumns(IEnumerable<string> ids)
Parameters
System.Collections.Generic.IEnumerable<System.String> ids

AutoFitColumnsAsync(IEnumerable<String>)

Declaration
public Task AutoFitColumnsAsync(IEnumerable<string> ids)
Parameters
System.Collections.Generic.IEnumerable<System.String> ids

Returns
System.Threading.Tasks.Task

BuildRenderTree(RenderTreeBuilder)

Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
Microsoft.AspNetCore.Components.Rendering.RenderTreeBuilder __builder

Dispose()

Declaration
public override void Dispose()
Overrides
Telerik.Blazor.Components.Common.TableGridBase<TItem, Telerik.Blazor.Components.TreeListCommandEventArgs>.Dispose()

GetItemFromDropIndex(Int32)

Declaration
protected override TItem GetItemFromDropIndex(int index)
Parameters
System.Int32 index

Returns
TItem

Overrides
Telerik.Blazor.Components.Common.TableGridBase<TItem, Telerik.Blazor.Components.TreeListCommandEventArgs>.GetItemFromDropIndex(System.Int32)

GetState()

Gets the current state of the TreeList. Includes sorting, filtering, edit items, column state, etc.

Declaration
public TreeListState<TItem> GetState()
Returns
TreeListState<TItem>

Instance of a TreeListState<TItem> class that contains all data.

OnAfterRenderAsync(Boolean)

Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean firstRender

Returns
System.Threading.Tasks.Task

Overrides
BaseComponent.OnAfterRenderAsync(Boolean)

OnParametersSetAsync()

Declaration
protected override Task OnParametersSetAsync()
Returns
System.Threading.Tasks.Task

Overrides
Telerik.Blazor.Components.Common.DataBoundComponent<TItem>.OnParametersSetAsync()

SetParametersAsync(ParameterView)

Declaration
public override Task SetParametersAsync(ParameterView parameters)
Parameters
Microsoft.AspNetCore.Components.ParameterView parameters

Returns
System.Threading.Tasks.Task

Overrides
Telerik.Blazor.Components.Common.DataBoundComponent<TItem>.SetParametersAsync(Microsoft.AspNetCore.Components.ParameterView)

SetStateAsync(TreeListState<TItem>)

Sets the state of the TreeList. Includes sorting, filtering, edit items, column state, etc.

Declaration
public Task SetStateAsync(TreeListState<TItem> state)
Parameters
TreeListState<TItem> state

Returns
System.Threading.Tasks.Task

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Client-side Blazor
  • Server-side Blazor
  • Demos
Community
  • Forums
  • Blogs
  • Feedback Portal
Support Resources
  • Demos
  • Knowledge Base
  • Samples Repo
  • Localizations Repo
Sample Applications
  • Dashboard
  • PWA - Stocks
  • PWA - Blazing Coffee Roasters

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.