AIMCP Server and Agent Skills included

React Tree Grid for nested data, now easier to build with AI

Show parent and child rows in one grid, with expand and collapse, editing, Excel-like filtering, aggregates, frozen columns, virtual scrolling, and export built in. AI assistants set it up for you from the current docs.

  • 1M+npm downloads
  • 4.5/5850+ G2 reviews
  • 4.6/5950+ Capterra reviews
  • WCAG 2.2and Section 508
  • Virtualscrolling for large trees

Trusted by the world’s leading companies

Syncfusion customers include Visa, Apple, McDonald’s, Netflix, Starbucks, IBM, Tesla, and Schneider Electric

Now easier with AI

Build and use tree grids faster with AI

Coding assistants write the setup from the current docs, and your users can restructure data by asking.

01For developers

Describe a hierarchy and get code that uses the documented API

The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Tree Grid docs and recommended patterns.

See all 60 features

AI coding assistantMCP · Syncfusion React

Show the project plan with tasks and their subtasks.

search_docs“React Tree Grid hierarchical data binding” · 2 doc sections

+<TreeGridComponent dataSource={tasks}

+ treeColumnIndex={1}

+ idMapping="TaskID" parentIdMapping="ParentID">

<ColumnsDirective>…</ColumnsDirective>

</TreeGridComponent>

Documented API: idMapping, parentIdMapping, treeColumnIndex

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Let users edit cells and add new rows as children of the selected row.

search_docs“React Tree Grid cell, row, dialog, and batch editing” · 2 doc sections

+<TreeGridComponent dataSource={tasks}

+ childMapping="subtasks"

+ editSettings={{ allowEditing: true, allowAdding: true,

+ mode: 'Cell', newRowPosition: 'Child' }}>

+ <Inject services={[Edit, Toolbar]} />

</TreeGridComponent>

Documented API: editSettings, newRowPosition

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add Excel-like filters and keep the parent rows of every match.

search_docs“React Tree Grid filtering and searching” · 2 doc sections

+<TreeGridComponent allowFiltering={true}

+filterSettings={{ type: 'Excel', hierarchyMode: 'Parent' }}>

+ <Inject services={[Filter]} />

</TreeGridComponent>

Documented API: allowFiltering, filterSettings, hierarchyMode

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add checkboxes to the task column so checking a parent checks its subtasks.

search_docs“React Tree Grid checkbox selection” · 2 doc sections

+<TreeGridComponent autoCheckHierarchy={true}>

<ColumnsDirective>

+<ColumnDirective field="taskName"

+ showCheckbox={true} />

</ColumnsDirective>

</TreeGridComponent>

Documented API: showCheckbox, autoCheckHierarchy

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Show the total duration and average progress in the footer.

search_docs“React Tree Grid aggregates” · 2 doc sections

+<AggregatesDirective><AggregateDirective

+ showChildSummary={false}>

+ <AggregateColumnsDirective>

+<AggregateColumnDirective field="duration"

+ type="Sum" />

+<AggregateColumnDirective field="progress"

+ type="Average" />

</AggregateColumnsDirective>

</AggregateDirective></AggregatesDirective>

Documented API: AggregateColumnDirective, showChildSummary

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Let users drag tasks to reorder them or move them under another task.

search_docs“React Tree Grid row drag and drop” · 2 doc sections

+<TreeGridComponent allowRowDragAndDrop={true}

+ selectionSettings={{ type: 'Multiple' }}>

+ <Inject services={[RowDD, Selection]} />

</TreeGridComponent>

Documented API: allowRowDragAndDrop, RowDD

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Freeze the first two columns and the first row.

search_docs“React Tree Grid frozen columns and rows” · 2 doc sections

+<TreeGridComponent frozenColumns={2} frozenRows={1}

+ height={350}>

+ <Inject services={[Freeze]} />

</TreeGridComponent>

Documented API: frozenColumns, frozenRows

ResultRendered in your app

AI coding assistantMCP · Syncfusion React

Add toolbar buttons to export the plan to Excel, PDF, and CSV.

search_docs“React Tree Grid excel, pdf, and csv export” · 2 doc sections

+<TreeGridComponent

+ toolbar={['ExcelExport', 'PdfExport', 'CsvExport']}

+ allowExcelExport={true}

+ allowPdfExport={true} toolbarClick={onToolbarClick}>

+<Inject services={[Toolbar, ExcelExport, PdfExport]}

+ />

</TreeGridComponent>

Documented API: allowExcelExport, allowPdfExport, toolbar

ResultRendered in your app

02For your users

A tree grid that restructures itself

Connect an AI service through your own backend, so API keys never reach the browser.

Adaptive data structuring

AI turns flat records into a parent and child hierarchy users can expand.

Performance

Large hierarchies stay fast

Virtual scrolling renders only the rows in view, and remote data loads child rows when users expand a parent.

Virtual scrolling
Only visible rows render
Load on demand
Child rows load on expand
Infinite scrolling
More rows load as users scroll
Paging
Page root rows or all levels
How virtual scrolling works

Use cases and showcase apps

React Tree Grid use cases, built as real apps

A complete app built with the React Tree Grid. Run it in the browser.

Browse all sample apps
Supply Chain Management app built with Syncfusion React components

Supply Chain Management

Warehouse, inventory, procurement, and logistics views in one supply-chain workspace.

  • Tree Grid
  • Pivot Table
  • Data Grid
  • Charts
  • Gantt Chart

Features in depth

React Tree Grid features in depth

Open a demo to try each one, or the docs to see the API.

Data binding: nested, self-referencing, and remote

Bind nested child arrays with childMapping or flat records with idMapping and parentIdMapping. Remote data through a DataManager can load child rows only when a parent expands.

Editing: cell, row, dialog, and batch

Edit in cell, row, dialog, or batch mode, add rows above, below, or as children, and validate input. Command columns and edit templates customize the editors.

Sorting, filtering, and searching

Sort one or more columns, filter with a filter bar, menu, or Excel-like checklist, and search every column. The hierarchy mode decides whether parents or children of matches stay visible.

Selection and checkboxes

Select rows or cells, one or many, by mouse, touch, or keyboard. Checkbox columns check a whole branch at once, and parent rows show a partial state.

Columns: frozen, reordered, resized, and stacked

Freeze columns and rows, reorder and resize columns, stack headers, and let users show or hide columns from a column chooser or column menu.

Rows: templates, detail rows, and drag and drop

Render rows and cells from templates, show a detail panel under a row, and drag rows to reorder them or move them to another parent.

Aggregates and conditional formatting

Show sums, averages, counts, minimums, maximums, or custom aggregates in footer rows, for each parent or the whole grid, and style cells that meet a condition.

Virtual scrolling, infinite scrolling, and paging

Virtual scrolling renders only the rows in view, infinite scrolling loads more as users scroll, and paging can count root rows or every level.

Export to Excel, PDF, and CSV, and print

Export the hierarchy with its formats and aggregates to Excel, PDF, or CSV, export only what is expanded or filtered, and print the grid.

Accessible, localized, and themed

Keyboard access to every cell, screen reader support, right-to-left layouts, and localization, in Tailwind CSS, Bootstrap, Material, Fluent, and Fabric themes you can brand in Theme Studio.

Get started

Get your first tree grid running, with or without AI

With an AI coding assistant

  1. Connect the Syncfusion MCP serverWorks in VS Code, Cursor, JetBrains, and other MCP-compatible assistants.Set up the MCP server
  2. Add Agent Skills to your projectYour agent follows Syncfusion’s recommended Tree Grid patterns.Install Agent Skills
  3. Describe the tree gridCopy this prompt to start.

    Create a project plan page with a Syncfusion React Tree Grid: tasks with subtasks, cell editing, checkbox selection, a total duration footer, and Excel export.

By hand, in three steps

1 · Install

npm install @syncfusion/ej2-react-treegrid @syncfusion/ej2-tailwind3-theme --save

2 · src/App.css

@import '../node_modules/@syncfusion/ej2-tailwind3-theme/styles/treegrid/index.css';

3 · src/App.tsx

import { useRef } from 'react';
import { TreeGridComponent, ColumnsDirective, ColumnDirective, AggregatesDirective, AggregateDirective, AggregateColumnsDirective, AggregateColumnDirective, Inject, Edit, Selection, Toolbar, ExcelExport, Aggregate } from '@syncfusion/ej2-react-treegrid';
import './App.css';
import { tasks } from './data';

export default function App() {
  const grid = useRef<TreeGridComponent>(null);
  const toolbarClick = (args: any) => {
    if (args.item.id.includes('excelexport')) grid.current?.excelExport();
  };
  return (
    <TreeGridComponent ref={grid} dataSource={tasks} childMapping="subtasks" treeColumnIndex={1} height={350}
      autoCheckHierarchy={true} allowExcelExport={true}
      editSettings={{ allowEditing: true, mode: 'Cell' }}
      toolbar={['ExcelExport']} toolbarClick={toolbarClick}>
      <ColumnsDirective>
        <ColumnDirective field="id" headerText="ID" width={60} isPrimaryKey={true} />
        <ColumnDirective field="name" headerText="Task" width={220} showCheckbox={true} />
        <ColumnDirective field="owner" headerText="Owner" width={120} />
        <ColumnDirective field="duration" headerText="Duration" width={100} textAlign="Right" />
      </ColumnsDirective>
      <AggregatesDirective>
        <AggregateDirective showChildSummary={false}>
          <AggregateColumnsDirective>
            <AggregateColumnDirective field="duration" type="Sum" footerTemplate="Total: ${Sum}" />
          </AggregateColumnsDirective>
        </AggregateDirective>
      </AggregatesDirective>
      <Inject services={[Edit, Selection, Toolbar, ExcelExport, Aggregate]} />
    </TreeGridComponent>
  );
}
Read the getting started guide

Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements

Customer reviews

Trusted by developers and teams

G2

4.5/5

From 850+ reviews of Essential Studio®

Read the reviews on G2

“Awesome, enough said”

Easy usability, solving real-life problems, easy to implement. Most of the cases have the operators and settings possibilities you need right away.

Oliver O.Creative and Art Direction, Small Business

“A giant framework with great pricing options”

I have loved the components and options that Syncfusion has; besides, its documentation, demos, and support are excellent.

Alejandro Javier V.CEO, Small Business
75%
lower costs
50%
faster development

Customer story · Igniatek

Igniatek cuts development time 50% and costs 75% with Essential Studio®

“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”

Somnath Maji, Founder, Igniatek Consultancy

Award-winning

Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.

Recent industry awards won by Syncfusion

Complete feature list

Every tree grid feature, included in the license

  • Every feature includedNo separate enterprise edition
  • Royalty-freeNo runtime or deployment fees
  • Weekly patchesPlus regular feature releases
  • Expert supportFrom Syncfusion engineers

Showing all 60 features. Each one opens its demo or documentation.

For flat or summarized data:React Data GridReact Pivot TableReact TreeView

Questions and answers

React Tree Grid FAQ

What is the React Tree Grid?

The Syncfusion React Tree Grid shows hierarchical data in a table: each parent row can expand to show its child rows. It adds editing, sorting, filtering, aggregates, and export, like a data grid for nested data. Explore the demos

What is the difference between the Tree Grid and the Data Grid?

Use the Tree Grid when records have parents and children, such as tasks and subtasks or a bill of materials. Use the Data Grid for flat records, where grouping by a column value is enough. React Data Grid

How do I add a tree grid in React?

Install @syncfusion/ej2-react-treegrid and the Tailwind 3 theme, import the theme CSS, and render TreeGridComponent with a dataSource and childMapping. The getting started section on this page shows each step. Read the getting started guide

Which data structures does it support?

Nested data, where each record holds its children in a field set by childMapping, and flat self-referencing data, where idMapping and parentIdMapping link records. Read about data binding

Can child rows load on demand from a server?

Yes. With remote data bound through a DataManager, the Tree Grid requests a parent's child rows when users expand it, so large trees open quickly. Read about remote data

How does the Tree Grid handle large data?

Virtual scrolling renders only the rows in view, infinite scrolling loads more rows as users scroll, and paging can count root rows or every level. Virtual scrolling demo

How do filtering and searching treat parent and child rows?

The hierarchyMode filter setting decides what stays visible: the parents of matches, the children, both, or only the matching rows. Read about filtering

Which edit modes are available?

Cell, row, dialog, and batch editing. New rows can go above, below, or as children of the selected row, with validation and custom edit templates. Read about editing

Can users reorder rows by dragging?

Yes. Set allowRowDragAndDrop so users drag rows to a new position, under another parent, or into another Tree Grid. Row drag and drop demo

Can I export the hierarchy to Excel or PDF?

Yes. Export to Excel, PDF, or CSV keeps the hierarchy, formats, and aggregates, and you can print the grid. Exporting demo

Can AI coding assistants build with the React Tree Grid?

Yes. The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Tree Grid docs and recommended patterns. You need a Syncfusion API key and an active license, which can be a commercial, Community, or trial license. Set up the MCP server

Is the React Tree Grid accessible?

Yes. It follows WAI-ARIA practices and WCAG 2.2, with keyboard access to every cell, screen reader support, and right-to-left layouts. Read about accessibility

Is the Syncfusion React Tree Grid free?

It is a commercial component with a 30-day free trial. A free Community License is available for companies and individuals with less than $1 million USD in annual gross revenue, five or fewer developers, and 10 or fewer total employees. Check Community License eligibility

Syncfusion React Tree Grid

Build your React tree grids faster with AI

The full Tree Grid, the MCP server, and Agent Skills, free for 30 days.

  • No credit card required
  • Free Community License for eligible teams
  • No runtime or deployment fees