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

Get row from another RadGrid from RadWindow

1 Answer 83 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Guorui
Top achievements
Rank 1
Guorui asked on 17 Oct 2013, 06:39 AM
Hi

I have a Radgrid and initially it's empty.
When the user click "Add" button, a RadWindow popup to show another Radgrid with exactly same format(columns) as one in the parentpage. Except in this RadWindow the grid is binded with several rows.

What I want to do is when the user click "Choose" button in the RadWindow, the rows in the grid choosed by the user in the RadWindow will be added into the grid in the parent page.

I've seen the demo of passing values from RadWindow to parent page. But the demo is just passing text. How to pass a datarow to the parent page?

Thanks

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 22 Oct 2013, 06:39 AM
Hi Guorui,

I am afraid it is not possible to pass the entire row directly to RadGrid. You can achieve the requested behavior by inserting a new record to your database and rebind the main grid:
http://www.telerik.com/help/aspnet-ajax/grid-insert-update-delete-at-database-level.html

For passing multiple values from the RadWindow, you can refer to this sample:
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandwindow/defaultcs.aspx?product=grid

For passing items between multiple grids, please check out the following demo:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Grid
Asked by
Guorui
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or