Drag & Drop Between Two Grids
This functionality requires that data objects have a data field that identifies which grid they belong to. In this demo, this data field is
To allow users to move rows between grids, follow these steps:
Bind the grids to the same store
The store should be able to update data. In this demo, the store is created using the createStore method (part of the DevExtreme.AspNet.Data extension). The specified
updateUrlenables the store to update data.
Filter the grids to display different record sets
Use the identifiers in the filterValue property to filter the grids. The grids below display only the records whose
Statusfield equals the grid's identifier.
Join the grids into one drag and drop group
Set the rowDragging.group property to the same value for all grids to allow moving rows between them.
Update the data field that specifies where the row belongs
Implement the rowDragging.onAdd function. To access the target grid's identifier, use the
toDatafunction parameter. Call the store's update method to send this identifier to the server and push the same changes to the store on the client. The grids are refreshed automatically if you enable reshapeOnPush in the dataSource.
If you have technical questions, please create a support ticket in the DevExpress Support Center.