New to KendoReact? Start a free 30-day trial
Drag and Drop
Drag and DropPremium
Updated on Jun 24, 2026
The TreeList component allows you to move its data items in the data tree by Drag and Drop the TreeList rows.
Getting Started
To enable drag and drop for TreeList rows:
-
Import
TreeListDraggableRowandmoveTreeItemfrom the TreeList package.tsximport { TreeList, TreeListDraggableRow, moveTreeItem, TreeListRowDragEvent } from '@progress/kendo-react-treelist'; -
Set the
rowprop toTreeListDraggableRow— this replaces the default row component with one that supports drag handles.tsx<TreeList row={TreeListDraggableRow} ... /> -
Handle the
onRowDropevent and use themoveTreeItemutility to reposition the dragged item in the data tree.tsxconst onRowDrop = (event: TreeListRowDragEvent) => { setData(moveTreeItem(data, event.dragged, event.draggedOver, subItemsField)); };
The following example demonstrates how to use the Drag and Drop feature to reorder rows within the TreeList hierarchy.
Change Theme
Theme
Loading ...