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 ASP.NET Core TreeView presents hierarchical data, such as a table of contents, organization hierarchy, or file directory, in a tree structure. A parent node can be expanded or collapsed to show or hide its child nodes. The TreeView is feature-rich, supporting data binding, loading on demand, multiple selection, drag and drop, node editing, checkboxes, templates, and more.


Why choose Syncfusion ASP.NET Core TreeView?

A high performance ASP.NET Core Tree View.

High performance

Load on demand (lazy load) is enabled by default to reduce bandwidth usage when consuming large amounts of data. Only first-level nodes are loaded initially, and then child nodes are loaded when their parent node is expanded.

ASP.NET Core TreeView seamless data binding.

Seamless data binding

Bind data to the TreeView component from any valid data source in JSON format. The tree data can be local or remote and retrieved via various adapters, such as OData, OData V4, URL, JSON, and web API.

ASP.NET Core TreeView resolution.

Adapts to any resolution

TreeView has a highly responsive layout and an optimized design for desktops, touchscreens, and phones. It works well on all mobile phones that use iOS, Android, or Windows OS.

ASP.NET Core TreeView admirable feature set.

Admirable feature set

The ASP.NET Core TreeView supports load on demand, bound and unbound modes, drag and drop, multiselection, and editing.

ASP.NET Core TreeView template designs.

Create your own template designs

It can be customized via node template support, which allows you to design a custom structure for tree nodes. Node templates can be used for parent nodes, child nodes, or both, and can include images and any custom element structure.

ASP.NET Core TreeView hierarchical data.

Visualize hierarchical data

The ASP.NET Core TreeView is a graphic user interface element that displays hierarchical data as a tree structure. It can be populated with nested arrays of JSON objects from a hierarchical data source.

ASP.NET Core TreeView customizable themes.

Attractive, customizable themes

Cutting-edge design with several built-in themes, such as Fluent, Tailwind CSS, Bootstrap, Material, and Fabric. Utilize the online Theme Studio tool to customize themes of treeview easily.

ASP.NET Core TreeView globalization and localization.

Globalization and localization

Enable users from different locales to use the component by formatting dates, currency, and numbering to suit preferences.


ASP.NET Core TreeView code example

Easily get started with the ASP.NET Core TreeView using a few simple lines of C# code as demonstrated below. Also explore our ASP.NET Core TreeView Example that shows you how to render and configure the TreeView in ASP.NET Core.

@using Syncfusion.EJ2
<ejs-treeview id="treedata" >
            <e-treeview-fields child="ViewBag.child" dataSource="ViewBag.dataSource" id="nodeId" parentId="pid" text="nodeText" hasChildren="hasChild" expanded="expanded"></e-treeview-fields>
        </ejs-treeview>
public IActionResult DefaultFunctionalities()
{

            List<Parentitem> parentitem = new List<Parentitem>();
            List<Childitem> childitem1 = new List<Childitem>();
            List<SubChilditem> subchilditem1 = new List<SubChilditem>();
            parentitem.Add(new Parentitem
            {
                nodeId = "01",
                nodeText = "Local Disk (C:)",
                expanded=true,
                child = childitem1,
            });
            childitem1.Add(new Childitem { nodeId = "01-01", nodeText = "Program Files", child=subchilditem1 });
            subchilditem1.Add(new SubChilditem { nodeId = "01-01-01", nodeText = "Windows NT" });
            subchilditem1.Add(new SubChilditem { nodeId = "01-01-02", nodeText = "Windows Mail" });
            subchilditem1.Add(new SubChilditem { nodeId = "01-01-03", nodeText = "Windows Photo Viewer" });
            List<SubChilditem> subchilditem2 = new List<SubChilditem>();
            childitem1.Add(new Childitem { nodeId = "01-02", nodeText = "Users", expanded=true, child = subchilditem2 });
            subchilditem2.Add(new SubChilditem { nodeId = "01-02-01", nodeText = "Smith" });
            subchilditem2.Add(new SubChilditem { nodeId = "01-02-02", nodeText = "Public" });
            subchilditem2.Add(new SubChilditem { nodeId = "01-02-03", nodeText = "Admin" });
            List<SubChilditem> subchilditem3 = new List<SubChilditem>();
            childitem1.Add(new Childitem { nodeId = "01-03", nodeText = "Windows", child = subchilditem3 });
            subchilditem3.Add(new SubChilditem { nodeId = "01-03-01", nodeText = "Boot" });
            subchilditem3.Add(new SubChilditem { nodeId = "01-03-02", nodeText = "FileManager" });
            subchilditem3.Add(new SubChilditem { nodeId = "01-03-03", nodeText = "System32" });
            List<Childitem> childitem2 = new List<Childitem>();
            parentitem.Add(new Parentitem
            {
                nodeId = "02",
                nodeText = "Local Disk (D:)",
                child = childitem2,
            });
            List<SubChilditem> subchilditem4 = new List<SubChilditem>();
            childitem2.Add(new Childitem { nodeId = "02-01", nodeText = "Personals", child=subchilditem4});
            subchilditem4.Add(new SubChilditem { nodeId = "02-01-01", nodeText = "My photo.png" });
            subchilditem4.Add(new SubChilditem { nodeId = "02-01-02", nodeText = "Rental document.docx" });
            subchilditem4.Add(new SubChilditem { nodeId = "02-01-03", nodeText = "Pay slip.pdf" });
            List<SubChilditem> subchilditem5 = new List<SubChilditem>();
            childitem2.Add(new Childitem { nodeId = "02-02", nodeText = "Projects",child=subchilditem5 });
            subchilditem5.Add(new SubChilditem { nodeId = "02-02-01", nodeText = "ASP Application " });
            subchilditem5.Add(new SubChilditem { nodeId = "02-02-02", nodeText = "TypeScript Application" });
            subchilditem5.Add(new SubChilditem { nodeId = "02-02-03", nodeText = "React Application" });
           
            List<SubChilditem> subchilditem6 = new List<SubChilditem>();
            childitem2.Add(new Childitem { nodeId = "02-02", nodeText = "Office", child = subchilditem6 });
            subchilditem6.Add(new SubChilditem { nodeId = "02-03-01", nodeText = "Work details.docx " });
            subchilditem6.Add(new SubChilditem { nodeId = "02-03-02", nodeText = "Weekly report.docx" });
            subchilditem6.Add(new SubChilditem { nodeId = "02-03-03", nodeText = "Wish list.csv" });
            List <Childitem> childitem3 = new List<Childitem>();
            parentitem.Add(new Parentitem
            {
                nodeId = "03",
                nodeText = "Local Disk (E:)",
                child = childitem3,
            });
            
            List<SubChilditem> subchilditem7 = new List<SubChilditem>();
            childitem3.Add(new Childitem { nodeId = "03-01", nodeText = "Pictures" , child=subchilditem7});
            subchilditem7.Add(new SubChilditem { nodeId = "03-01-01", nodeText = "Wind.jpg " });
            subchilditem7.Add(new SubChilditem { nodeId = "03-01-02", nodeText = "Stone.jpg" });
            subchilditem7.Add(new SubChilditem { nodeId = "03-01-03", nodeText = "Home.jpg" });
            
            List<SubChilditem> subchilditem8 = new List<SubChilditem>();
            childitem3.Add(new Childitem { nodeId = "03-02", nodeText = "Documents", icon = "docx" , child=subchilditem8});
            subchilditem8.Add(new SubChilditem { nodeId = "03-02-01", nodeText = "Environment Pollution.docx " });
            subchilditem8.Add(new SubChilditem { nodeId = "03-02-02", nodeText = "Global Warming.ppt" });
            subchilditem8.Add(new SubChilditem { nodeId = "03-02-03", nodeText = "Social Network.pdf" });
           
            List<SubChilditem> subchilditem9 = new List<SubChilditem>();
            childitem3.Add(new Childitem { nodeId = "03-03", nodeText = "Study Materials",child=subchilditem9 });
            subchilditem9.Add(new SubChilditem { nodeId = "03-03-01", nodeText = "UI-Guide.pdf" });
            subchilditem9.Add(new SubChilditem { nodeId = "03-03-02", nodeText = "Tutorials.zip" });
            subchilditem9.Add(new SubChilditem { nodeId = "03-03-03", nodeText = "TypeScript.7z" });

            ViewBag.dataSource = parentitem;
            char[] value = { 'c', 'h', 'i','l','d' }; 
            string Child = new string(value);
            ViewBag.child = Child;
            return View();
        }
public class Parentitem
{
    public string nodeId;
    public string nodeText;
    public string icon;
    public bool expanded;
    public bool selected;
    public List<Childitem> child;

}
public class Childitem
{
    public string nodeId;
    public string nodeText;
    public string icon;
    public bool expanded;
    public bool selected;
    public List<SubChilditem> child;

}
public class SubChilditem
{
    public string nodeId;
    public string nodeText;
    public string icon;
    public bool expanded;
    public bool selected;

}

ASP.NET Core TreeView Icons and images.

Icons and images

Present nodes with icons or images along with content.


Built-in checkboxes

Built-in support to display checkboxes in each node, allowing multiple selection of nodes. Checkboxes for parent nodes also have a tri-state mode: checked, unchecked, and indeterminate state.

ASP.NET Core TreeView Built-in checkboxes.


Drag and drop nodes

In ASP.NET Core TreeView, nodes can be reordered by simply dragging and dropping them.

Drag and drop nodes within the same ASP.NET Core TreeView.

Internal drag and drop

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

ASP.NET Core TreeView control drag and drop between trees.

Drag between TreeView

Users can drag nodes from one TreeView to another.

ASP.NET Core TreeView control dragging and dropping to external container.

External drag and drop

Extend the drag and drop operation from TreeView to other controls like ListView.


Multiple selection of nodes

ASP.NET Core TreeView allows users to select multiple nodes using checkboxes or the Shift and Ctrl keys.

ASP.NET Core TreeView multiple node selection.

ASP.NET Core TreeView multiple node drag and drop.


ASP.NET Core TreeView Inline node editing.

Inline node editing

Modify the tree nodes’ labels using the mouse, touch, or keyboard.


Sorting nodes

Sort the tree view nodes in ascending or descending order based on their labels.

ASP.NET Core TreeView Sorting nodes.


ASP.NET Core TreeView Node template.

Node template

Customize the content of each parent and child node using images or custom elements in the ASP.NET Core TreeView.


Expand and collapse nodes

Easily customize the expand and collapse icons based on the requirement of your application.

ASP.NET Core TreeView Expand and collapse nodes.


ASP.NET Core TreeView context menu.

Context menu

Integrate a context menu into ASP.NET Core TreeView to perform node manipulations such as adding, removing, and renaming nodes.


Text wrap

A node’s text wraps when it reaches edge of the TreeView. The node’s height will adjust automatically based on the content.

ASP.NET Core TreeView text wrap.


ASP.NET Core node customization by level.

Customization by node level

Customize the tree nodes based on their level, such as leaf nodes, sibling nodes, first-level nodes, and second level nodes.


Node validation

Add validation to the labels of tree nodes on editing, like a minimum or maximum length.

Tree node validation.


ASP.NET Core TreeView tooltip.

Tooltips for tree nodes

It supports tooltips for tree nodes that display information about the nodes while hovering over them. You can bind a tooltip from a data source along with node fields.


Accessibility

The ASP.NET Core TreeView component is easily accessed by screen readers. Complete keyboard interaction support has also been provided.

Keyboard navigation in ASP.NET Core TreeView.

Keyboard navigation

The ASP.NET Core TreeView component ensures that every cell is accessible using the keyboard. Major features like sort, select, and edit can be performed using keyboard commands alone; no mouse interaction is required. This helps in creating highly accessible applications using this component.

Accessibility and screen reader support in ASP.NET Core TreeView.

Screen reader

The ASP.NET Core TreeView has complete WAI-ARIA accessibility support. The Data Grid UI includes high-contrast visual elements that help visually impaired people to have the best viewing experience. Also, valid UI descriptions are easily accessible through assistive technologies such as screen readers.

Show right-to-left language in ASP.NET Core TreeView.

Right to left (RTL)

Right-to-left rendering allows displaying the text and layout of the TreeView from right to left. This improves the user experience and accessibility for RTL languages.





Other supported frameworks

TreeView is also available in Blazor, Angular, React, and Vue frameworks. Check out the different TreeView platforms from the links below,

Supported browsers

The ASP.NET Core TreeView works well with all modern web browsers such as Chrome, Firefox, Microsoft Edge, Safari, and Opera.

Supported browsers in ASP.NET Core Tree View.

85+ ASP.NET CORE UI CONTROLS

Frequently Asked Questions

Syncfusion ASP.NET Core Tree View provides the following features:

  • Display hierarchical data in a tree structure.
  • Load a wide range of nodes with optimal performance.
  • Flexible data binding with support to use local and remote data sources such as JSON, RESTful services, OData services, and WCF services.
  • Drag and drop multiple selected tree nodes anywhere.
  • Select multiple nodes using built-in checkboxes.
  • Edit node text inline with editable node support.
  • Customize nodes, expand icons, and collapse icons.
  • One of the best ASP.NET Core Treeview in the market that offers feature-rich UI to interact with the software.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • Expansive learning resources such as demos and documentation to learn quickly and get started fast.

We do not sell the ASP.NET Core Tree View separately. It is only available for purchase as part of the Syncfusion ASP.NET Core suite, which contains over 85 ASP.NET Core components, including the Tree View. A single developer license for the Syncfusion Essential Studio for ASP.NET Core 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 ASP.NET Core Tree View demo, which demonstrates how to render and configure the TreeView.

No, our 85+ ASP.NET Core controls, including Tree View, 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 85+ ASP.NET Core controls 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, 5 or fewer developers, and 10 or fewer total employees.

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

Our Customers Love Us

Having an excellent set of tools and a great support team, Syncfusion reduces customers’ development time.
Here are some of their experiences.

Rated by users across the globe

Transform your applications today by downloading our free evaluation version
Download Free Trial No credit card required.

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
Live Chat Icon For mobile