New to Telerik UI for ASP.NET Core? Download free 30-day trial

ASP.NET Core Grid Drag and Drop

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
  • Edit in Telerik REPL
HtmlHelper
TagHelper
Files:
drag_drop.cshtml
Drag_DropController.cs
ProductService.cs
ProductViewModel.cs
Drag_Drop_TagHelper.cshtml

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

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:

  1. Set the reorderable configuration of the Grid rows—.Reorderable(reorder => reorder.Rows(true)).
  2. 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.

Additional Apps

This Grid example is part of unique collection of hundreds of ASP.NET Core demos, with which you can see all Telerik ASP.NET Core components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for ASP.NET Core or ThemeBuilder.

Support & Learning Resources

Additional Resources