DevExtreme v23.1 is now available.
Explore our newest features/capabilities and share your thoughts with us.
This functionality requires that data objects have a data field that identifies which grid they belong to. In this demo, this data field is Status
.
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 updateUrl
enables the store to update data.
Specify grid identifiers
Save them in the rowDragging.data property. The grids below have identifiers 1 and 2.
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 Status
field 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 toData
function 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.