New to Telerik UI for ASP.NET Core? Download free 30-day trial
ASP.NET Core Grid Drag and Drop
- EXAMPLE
- VIEW SOURCE
-
Change Theme
defaultDefault Theme
- Main
- Main Dark
- Nordic
- Ocean Blue
- Ocean Blue A11Y
- Purple
- Turquoise
Bootstrap Theme- Main
- Bootstrap 3
- Bootstrap 3 Dark
- Main Dark
- Nordic
- Turquoise
- Turquoise Dark
- Urban
- Vintage
Material Theme- Main
- Arctic
- Lime Dark
- Main Dark
- Nova
Classic Theme- Main
- Green
- Green Dark
- Lavender
- Lavender Dark
- Main Dark
- Metro
- Metro Dark
- Moonlight
- Opal
- Opal Dark
- Silver
- Silver Dark
- Uniform
Fluent Theme- Main
Also available for:
CLIENT-SIDE API HTML HELPER APIDescription
The Telerik UI for ASP.NET Core Data Grid provides a drag-and-drop feature, which allows users to reorder single or multiple Grid rows by dragging and move rows between different Grids.
To enable the dragging and dropping in the Data Grid:
- Set the
reorderable
configuration of the Grid rows—.Reorderable(reorder => reorder.Rows(true))
. - Add a drag handle to a specified column to reorder the rows by dragging—
.Draggable(true)
.
To handle the drag-and-drop operations and modify the data source as required, for example, to move rows between Grids, use the RowReorder
event of the Data Grid.
Additionally, you can enable the Navigatable()
option and reorder the rows by using the Ctrl
+ Up Arrow
or Down Arrow
.
For more information, refer to the official Telerik UI for ASP.NET Core Data Grid product documentation on dragging and dropping rows and columns.