This is a migrated thread and some comments may be shown as answers.

RadGrid Transfer Rows items to another Radgrid

1 Answer 192 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Franz
Top achievements
Rank 1
Iron
Iron
Franz asked on 25 Nov 2019, 10:24 PM

HI!

I have a problem with radgrid drag and drop.. Is it possible to transfer duplicates items from Radgrid to another Radgrid same as ListBox?..

i followed this  this https://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx , but it doesnt help me that much

Hope you can help me

Thanks

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Attila Antal
Telerik team
answered on 28 Nov 2019, 03:25 PM

Hi Franz,

By duplicate items, did you mean to have duplicate records or to move multiple items at once? Maybe you are looking for a button that will transfer the one or more selected items from one grid to another?

1. Having duplicate records depends on whether the database you update when you add a row to a Grid allows that.

2. Moving multiple items at once is possible and can be tested in the demos you shared below. Select more than one item, then drag it to the Grid on the right.

3. Moving items is done visually, but once they are dropped at the destination, only the information in the items are moved over, the Grid will render the element once refreshed. So, you can try to implement a button which if clicked, will loop through the selected items of one Grid, get their record IDs, copy these records from Grid1 dataSource to Grid2 datasource and finally remove them from Grid1 datasource. 

Here is one useful article I would recommend for this case: Accessing Cells and Rows

 

Kind regards,
Attila Antal
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Grid
Asked by
Franz
Top achievements
Rank 1
Iron
Iron
Answers by
Attila Antal
Telerik team
Share this question
or