We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The Blazor TreeView is a graphical user interface component that allows you to represent hierarchical data in a tree-like structure. This component has advanced features like load on demand, multiple selection, tree navigation, drag and drop, tree node editing, and check box and template support that improve the performance greatly.


Blazor TreeView data binding from different data sources.

Data binding

Blazor TreeView loads data either from local data sources or remote data services using the DataSource property. This property supports the list of object arrays and DataManager. It also supports different kinds of data services such as OData, OData V4, Web API, URL, and JSON with the help of DataManager adaptors.


Load on demand (Lazy load)

The load-on-demand feature loads huge amounts of data dynamically, which improves the component’s performance. Child nodes in the component can be loaded from any web service or inserted dynamically.


Tree node with icons and Images

Display nodes with labels and icons or images to present content in a more readable format. This is helpful in making a typical directory tree and file system.


Check box support

Built-in support for check boxes allows users to select more than one item. The Blazor TreeView check boxes also have a tri-state mode that is applicable only for parent nodes. In this mode, the parent node will go into an indeterminate state when the child nodes are partially checked.


Drag and drop

In Blazor TreeView, Nodes can be dragged and dropped at all levels of the same TreeView.

Blazor TreeView component drag and drop inside a tree.

Inside the tree

Tree nodes can be dragged and dropped from one parent node to another within the same level or different levels.

Blazor TreeView component drag and drop between trees.

Outside the tree

Extending the drop behavior allows users to drop tree nodes from one tree view to another tree view.

Blazor TreeView component dragging and dropping to external container.

To an external container

Drop tree nodes to any external container or component by extending the tree view node drop action.


Multiple node selection

The Blazor TreeView allows users to select multiple nodes. When the drag-and-drop feature is enabled, all the selected nodes can be dragged at the same time.

Blazor TreeView multiple node selection.

Blazor TreeView multiple node drag and drop.


Editable nodes

Edit the tree nodes’ label text on the client side by double-clicking it. While editing Blazor tree view nodes, the tree view data source will also be updated by the modified data.


Sorting tree nodes

Render the Blazor TreeView nodes in ascending or descending order based on the label text to provide users improved readability.


Blazor TreeView node template

Node template

Customize the Blazor TreeView using the node template support to define a custom structure for tree nodes. You can use node templates for parent nodes, child nodes, or both, and include images and custom elements.


Expand collapse icons

Easily customize the Blazor TreeView expand and collapse icons based on your application requirements.


Right to left (RTL)

Blazor TreeView supports right-to-left (RTL) direction rendering for users working in right-to-left languages like Hebrew, Arabic, or Persian.


Built-in and customizable themes

Several built-in SASS-based themes are available such as Tailwind CSS, Bootstrap 5, Bootstrap 4, Bootstrap, Material, Fabric, and High Contrast. Simplify theme customization either by overriding the existing SASS styling or creating custom themes by using the Theme Studio application.


Web accessibility

  • Fully supports WAI-ARIA accessibility guidelines for working with screen readers and assistive devices.
  • Follows WAI-ARIA best practices for implementing keyboard interaction.
  • Designs the UI element visuals such as foreground color, background color, line spacing, text, and images based on WCAG 2.0 standard.

Developer-friendly APIs

The Blazor TreeView component has a rich set of developer-friendly APIs to customize all UI elements and behaviors, allowing you to provide the best experience to your end users.


Blazor TreeView Code Example

Easily get started with the Blazor TreeView using a few simple lines of C# code example as demonstrated below, Also explore our Blazor TreeView Example that shows you how to render the treeview component.

@using Syncfusion.Blazor.Navigations
<SfTreeView TValue="MailItem">
<TreeViewFieldsSettings TValue="MailItem" Id="Id" DataSource="@MyFolder" Text="FolderName" ParentID="ParentId" HasChildren="HasSubFolders" Expanded="Expanded"></TreeViewFieldsSettings>
</SfTreeView>

@code{
public class MailItem
{
    public string Id { get; set; }
    public string ParentId { get; set; }
    public string FolderName { get; set; }
    public bool Expanded { get; set; }
    public bool HasSubFolders { get; set; }
}
List<MailItem> MyFolder = new List<MailItem>();
protected override void OnInitialized()
{
    base.OnInitialized();
    MyFolder.Add(new MailItem
    {
        Id = "1",
        FolderName = "Inbox",
        HasSubFolders = true,
        Expanded = true
    });
    MyFolder.Add(new MailItem
    {
        Id = "2",
        ParentId = "1",
        FolderName = "Categories",
        Expanded = true,
        HasSubFolders = true
    });
    MyFolder.Add(new MailItem
    {
        Id = "3",
        ParentId = "2",
        FolderName = "Primary"
    });
    MyFolder.Add(new MailItem
    {
        Id = "4",
        ParentId = "2",
        FolderName = "Social"
    });
    MyFolder.Add(new MailItem
    {
        Id = "5",
        ParentId = "2",
        FolderName = "Promotions"
    });
}
}

Other supported frameworks

TreeView is also available in JavaScript, Angular, React, and Vue frameworks that are built from their own TypeScript libraries. Check out the different TreeView platforms from the links below,




Blazor Components – 70+ UI and DataViz Components

Frequently Asked Questions

  • Display hierarchical data in a tree-view structure.
  • Load a wide range of nodes with optimal performance.
  • Flexible data binding with support to use data sources such as Web API, OData, Entity Framework, and more.
  • Drag and drop multiple selected tree nodes anywhere.
  • Select multiple nodes using built-in check boxes.
  • Edit node text inline with editable nodes support.
  • Easily customize nodes, expand icons, and collapse icons.
  • One of the best Blazor TreeView in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and APIs.
  • Supports all modern browsers.
  • Touch-friendly and responsive.
  • Extensive demos, documentation, and videos to learn quickly and get started with Blazor TreeView.

We do not sell the Blazor TreeView separately. It is only available for purchase as part of the Syncfusion Blazor suite, which contains over 70 native Blazor components, including the TreeView. A single developer license for the Syncfusion Essential Studio for Blazor suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

You can find our Blazor TreeView demo here.

No, our 70 Blazor components, including TreeView, are not sold individually, only as a single package. However, we have competitively priced the product so it only costs a little bit more than what some other vendors charge for their tree view alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 70 Blazor components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

A good place to start would be our comprehensive getting started documentation.

Read independent,
authenticated reviews
on G2

Download Now

What do our customers say about us?

double quotes

Syncfusion controls contain almost everything a developer could ask for, saving us time and money. All backed up by unmatched support. Syncfusion controls are a developer's dream come true.
Kevin Kerr

Kevin Kerr

Kirk-Rudy

double quotes

I would highly recommend using Essential Studio and have found that the Syncfusion support team is one of the fastest I have worked with.
Georg Kukula

Georg Kukula

G&W Software Entwicklung GmbH

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile