Update destination grid multiple rows column values by drag and drop multiple rows from source grid. Both grids are different column structures.

Hi,

Anyone please provide me a sample code / working application for below scenario or post me if you have any other working online samples. 

- I want to to drag single or multiple rows from a grid and drop single or multiple rows in another grid. 
- Both grids are having different datasource (Column structures are different)
- In the drop even I want to get source grid selected rows details and update the datasource values only in destination grid selected rows. 

Overall idea is I want to update destination grid columns by drag and drop it from source grid. In both grids user able to select multiple rows. 

Please find the attachment. 



Thanks in advance. 



3 Replies

SE Sathyanarayanamoorthy Eswararao Syncfusion Team February 12, 2018 01:16 PM UTC

Hi Mukesh, 

Thanks for contacting Syncfusion support. 

According to your query you need to drag and drop the rows between two grids with different dataSource.  

In row drag and drop feature of the grid if a row is dragged and dropped from one grid to another grid(different dataSource) then the dataSource will be updated in the target grid. But the values will be displayed in Grid when we have the same column in target grid.      

In this you have mentioned that you need to get the selected Rows details in drop event. So, we suggest you to  use rowDrop event of ejGrid. In rowDrop event we can able to get the selected Rows in the arguments.   

Please refer the following documentation for the details of rowDrop event. 


To set multiple selection for the grid. 


If you need any further assistance please get back to us. 

Regards, 
Sathyanarayanamoorthy 




MU Mukesh February 12, 2018 02:24 PM UTC

Thanks. 



SE Sathyanarayanamoorthy Eswararao Syncfusion Team February 13, 2018 12:56 PM UTC

Hi Mukesh, 
We are happy to hear that your issue has been solved. 
If you need any further assistance please get back to us. 

Regards, 
Sathyanarayanamoorthy 


Loader.
Up arrow icon