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

return value to another rad window

7 Answers 76 Views
Window
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 16 Jun 2008, 07:17 PM
Hi all,

i am working on a project where i need to open up a rad window from another rad window(that works) but also from the second rad window, i need to return a value to the first, is this possible? if so does anyone know how i can find out about this.

Thanks,

Rob

7 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Jun 2008, 08:21 AM
Hi Roberto,

I believe the following demo will be of help: Communication Between RadWindows. If you have installed the RadControls for ASP.NET AJAX suite locally, by default the example's files are available in
C:\Program Files\telerik\RadControls for ASPNET AJAX Q1 2008\Live Demos\Window\Examples\CommunicationBetweenRadWindows






Greetings,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roberto
Top achievements
Rank 1
answered on 17 Jun 2008, 10:22 AM
Hi Georgi,

Thanks for the response.  That is what i am trying to do, but my setup is slighly different in the fact that i am using a user control and for some reason it doesnt work exactly as it would on a normal page.

Anyway, i would like to review the files, but i dont have the live demos locally (i manually installed the controls after problems with the installer) is there another place i could download them from or could they be attached here?

Thanks,

Rob
0
Georgi Tunev
Telerik team
answered on 17 Jun 2008, 10:29 AM
Hello Roberto,

I attached the files to this thread - I am sorry for not sending them in my previous reply.




Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roberto
Top achievements
Rank 1
answered on 19 Jun 2008, 10:07 AM
Hi Georgi,

Thanks for the code i almost have it working now.  The values get passed to the calling rad window, that all works now.  The problem i am now facing is, the values passed back (via a javascript function) are lost during postback, which means my form doesnt do what it is supposed to do,

I know why it is happening as the information is being placed in the boxes client side so they dont exist within the execution of the page, but i need these values, but can seem to get them.

Any ideas would be great.

Rob
0
Roberto
Top achievements
Rank 1
answered on 19 Jun 2008, 10:07 AM
Hi Georgi,

Thanks for the code i almost have it working now.  The values get passed to the calling rad window, that all works now.  The problem i am now facing is, the values passed back (via a javascript function) are lost during postback, which means my form doesnt do what it is supposed to do,

I know why it is happening as the information is being placed in the boxes client side so they dont exist within the execution of the page, but i need these values, but can seem to get them.

Any ideas would be great.

Rob
0
Georgi Tunev
Telerik team
answered on 19 Jun 2008, 03:02 PM
Hi Roberto,

To be able to keep these values, you need to postback them to the server in some way. This is a general task and there are different ways to do it depending on your setup. For example you can use __doPostback() or an Ajax call. If you are using RadAjaxManager on that page, you can also consider using its ajaxRequest.


Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Roberto
Top achievements
Rank 1
answered on 19 Jun 2008, 03:40 PM
Hi Georgi,

I used ASP.Net hidden controls, they persisted the values and i was able to do my additional processing.

But thank you for your response.

Rob
Tags
Window
Asked by
Roberto
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or