Adaptive data structuring
AI turns flat records into a parent and child hierarchy users can expand.
AIMCP Server and Agent Skills included
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.
Trusted by the world’s leading companies
Now easier with AI
Coding assistants write the setup from the current docs, and your users can restructure data by asking.
01For developers
The Syncfusion MCP server and Agent Skills give assistants in VS Code, Cursor, and JetBrains the current Tree Grid docs and recommended patterns.
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
Connect an AI service through your own backend, so API keys never reach the browser.
AI turns flat records into a parent and child hierarchy users can expand.
Performance
Virtual scrolling renders only the rows in view, and remote data loads child rows when users expand a parent.
Use cases and showcase apps
A complete app built with the React Tree Grid. Run it in the browser.
Warehouse, inventory, procurement, and logistics views in one supply-chain workspace.
Features in depth
Open a demo to try each one, or the docs to see the API.
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.
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.
Freeze columns and rows, reorder and resize columns, stack headers, and let users show or hide columns from a column chooser or column menu.
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.
Export the hierarchy with its formats and aggregates to Excel, PDF, or CSV, export only what is expanded or filtered, and print the grid.
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
With an AI coding assistant
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>
);
}
Works withReact 15.5.4 or laterTypeScript and JavaScriptNext.jsRemixGatsbyVitePreactSystem requirements
Customer reviews
“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.
“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.
Customer story · Igniatek
“I would definitely recommend Syncfusion for anyone who is trying to develop something meaningful.”
Somnath Maji, Founder, Igniatek Consultancy
Including the 2026 Devies Award, Capterra Shortlist 2026, Software Advice FrontRunners 2026, and G2 Best Software 2025.
Complete feature list
Showing all 60 features. Each one opens its demo or documentation.
No feature matches that search. Try another word, or open the Tree Grid demos.
For flat or summarized data:React Data GridReact Pivot TableReact TreeView
Questions and answers
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
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
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
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
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
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
The hierarchyMode filter setting decides what stays visible: the parents of matches, the children, both, or only the matching rows. Read about filtering
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
Yes. Set allowRowDragAndDrop so users drag rows to a new position, under another parent, or into another Tree Grid. Row drag and drop demo
Yes. Export to Excel, PDF, or CSV keeps the hierarchy, formats, and aggregates, and you can print the grid. Exporting demo
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
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
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
Resources
Tree Grid for other frameworks:AngularBlazorJavaScriptVue
More React components:Data GridPivot TableGantt ChartAll 140+ React components
Syncfusion React Tree Grid
The full Tree Grid, the MCP server, and Agent Skills, free for 30 days.