Ramesh kumar Kuppusamy
Top achievements
Rank 1
Ramesh kumar Kuppusamy
asked on 23 May 2010, 02:34 PM
I want to Copy the selected rows from one grid to another.
I used the following code but the data not getting bind in to the second grid.
Dim selItems As GridItemCollection = grdResult.SelectedItems
RADGrid1.DataSource = selItems
RADGrid1.DataBind()
4 Answers, 1 is accepted
0
Princy
Top achievements
Rank 2
answered on 24 May 2010, 09:59 AM
Hello Ramesh,
One suggestion would be making use of drag and drop feature of grid records as shown in the demo.
If you do not want to have the drag-drop feature, you can disable it, and have the control postback upon selecting/deselecting the grid rows. Then, from the server SelectedIndexChanged event, you can loop through the SlectedItems, and add it to the other grid's datasource.
I hope these suggestions help.
Regards,
Princy.
One suggestion would be making use of drag and drop feature of grid records as shown in the demo.
If you do not want to have the drag-drop feature, you can disable it, and have the control postback upon selecting/deselecting the grid rows. Then, from the server SelectedIndexChanged event, you can loop through the SlectedItems, and add it to the other grid's datasource.
I hope these suggestions help.
Regards,
Princy.
0
Pams
Top achievements
Rank 1
answered on 10 Sep 2010, 09:24 PM
Hi,
I have same problem. I have a radgrid1 which gets data from object datasource and has paging option set. When we select some rows in radgrid1 and click a button the rows of radgrid1 in that page should be copied to other radgrid i.e radgrid2. Then go to next page of radgrid1 and select some rows and click button to add rows to radgrid2. Could anyone pls give the codesnippet which would be very great.
Thanks in advance
I have same problem. I have a radgrid1 which gets data from object datasource and has paging option set. When we select some rows in radgrid1 and click a button the rows of radgrid1 in that page should be copied to other radgrid i.e radgrid2. Then go to next page of radgrid1 and select some rows and click button to add rows to radgrid2. Could anyone pls give the codesnippet which would be very great.
Thanks in advance
0
Hapa
Top achievements
Rank 1
answered on 07 Jul 2014, 11:57 AM
Is there any example of how to move selected rows (GridClientSelectColumn) to another radgrid on button click? Both radgrids are on the same page.
Similar as http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx but not drag and drop but all selected items on button click.
Thanks
Similar as http://demos.telerik.com/aspnet-ajax/grid/examples/columns-rows/rows/drag-and-drop/defaultcs.aspx but not drag and drop but all selected items on button click.
Thanks
0
Hi Hapa,
I am sending a sample RadGrid web site to demonstrate how you can access the unique IDs of the selected items. Then, you can execute a custom logic to update the database of the second grid and rebind it afterwards.
Hope this helps.
Regards,
Eyup
Telerik
I am sending a sample RadGrid web site to demonstrate how you can access the unique IDs of the selected items. Then, you can execute a custom logic to update the database of the second grid and rebind it afterwards.
Hope this helps.
Regards,
Eyup
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.