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

Share Data between 2 RADGRID's

3 Answers 66 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Srihari
Top achievements
Rank 1
Srihari asked on 14 Jan 2011, 04:16 AM
Hi,

I have a RADGRID1 with 2 columns: 1.) Dropdownlist 2.) Textbox

The Dropdownlist columns has a dropdownlist with two values a.) Button and b.) Picklist
In the EDIT mode, when the user select "Button" from the dropdownlist, I generate a button and place it next to the TextBox.

Here is what I want:
When the user clicks on this 'Button', I want to open another RADGRID2 as a modal popup(like a lookup) which is bound to some data using SqlDataSource. RADGRID2 will have a Select button and when the user Selects a particular row, I want the entire row contents to be placed into the Textbox of RADGRID1 or atleast get the row values for each column so that I can make use of them in RADGRID1.

Can someone please let me know how to go about this. I am fairly new to all this and I feel utterly helpless.

Thanks,
Srihari.



3 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 17 Jan 2011, 04:42 PM
Hello Srihari,

You can handle the OnRowSelected client-side event and extract the text of each cell of the selected row there.
Find more information in the below articles:
http://www.telerik.com/help/aspnet-ajax/grdgettingcellvaluesforselectedrowsclientside.html
http://www.telerik.com/help/aspnet-ajax/grdextractkeyvaluesclientside.html

Kind regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Srihari
Top achievements
Rank 1
answered on 18 Jan 2011, 02:40 AM
Thanks for your reply Lana. I was able to figure that part out by now. But here is where I am stuck:

My RADGRID2 is in another aspx page and I am displaying this RADGRID2 inside a RADWINDOW when the user clicks on a button on RADGRID1. I am able to get the values and store them in different variables inside my Default2.aspx page. Can you please tell me, how I can close my RADWINDOW when the user clicks on a particular row AND get those row values into my Default1.aspx page?

Please let me know if you need any further clarification.

Thanks,
Srihari.
0
Iana Tsolova
Telerik team
answered on 19 Jan 2011, 04:30 PM
Hello Srihari,

Please refer to this online demo for more information on how to return value from RadWindow.

Regards,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Grid
Asked by
Srihari
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Srihari
Top achievements
Rank 1
Share this question
or