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

ASP.NET MVC Grid Drag and Drop

Loading Demo...
  • EXAMPLE
  • VIEW SOURCE
drag_drop.cshtml
Drag_DropController.cs
ProductService.cs

Also available for:

CLIENT-SIDE API SERVER-SIDE API

Description

The Telerik UI for ASP.NET MVC 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 MVC Data Grid product documentation on dragging and dropping rows and columns.

Additional Apps

This Grid example is part of a unique collection of hundreds of ASP.NET MVC demos, with which you can see all Telerik ASP.NET MVC 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 the ThemeBuilder.

Support & Learning Resources

Additional Resources