This example demonstrates how to simultaneously drag and drop multiple selected rows.
This implementation includes solutions for both local and remote data sources. It is based on our demos that illustrate how to drag a single row:
The implementation for remote data sources sends multiple requests to update the order index of every dropped row. If your back-end supports batch updates, you can simultaneously send all data updates in a custom way.
Use the DataGrid.rowDragging object to configure the drag and drop functionality:
- Handle the RowDragging.onDragStart event to collect selected rows and cancel the drag operation if a user attempts to drag non-selected rows.
- Handle the RowDragging.onDragChange event to cancel the drop operation if a user attempts to drop rows to the same position.
- Handle the RowDragging.onReorder event to re-order rows in the data source.
- Define RowDragging.dragTemplate to arrange cell values of selected rows for the dragged item.
- jQuery
- Angular
- Vue
- React
- NetCore
- TreeView for DevExtreme - How to drag and drop multiple items
- DataGrid for DevExtreme - How to drag multiple rows between two grids
(you will be redirected to DevExpress.com to submit your response)