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

passing a value back to a radwindow from a radwindow

3 Answers 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 02 Oct 2008, 10:03 PM
Hi,

 I open a radwindow (radwindow2) from a radwindow (radwindow1) in order to select a date.  If I openened the radwindow directly from a browser window I can set the value in the browser window using the following javascript code:

GetRadWindow().BrowserWindow.setValue(gup(

'TargetControlID'), value);

gup is just a function that returns the parameter value from the querstring.

THe problem is that when I use the above code from radwindow2 in order to set a value on Radwindow1, I get a javascript error.  I think this is because the object returned by GetRadWindow().BrowserWindow is not the same as if I were just one radwindow deep.

How should I change the code to set  a value  on the parent window of a radwindow when the parent that is also a radwindow?

Thanks
Jonathan

3 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 03 Oct 2008, 10:07 AM
Hello Jonathan,

I believe that the following demo will be of help - you can check the JavaScript code for the dialogs by examining the page's source:

http://demos.telerik.com/aspnet/prometheus/Window/Examples/CommunicationBetweenRadWindows/DefaultCS.aspx


Greetings,
Georgi Tunev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Jonathan
Top achievements
Rank 1
answered on 03 Oct 2008, 08:54 PM
Thanks,
that looks like what I need, however the ASPX code is not available for Dialog1.aspx and dialog2.aspx  can you provide a zip file for the whole example?
0
Jonathan
Top achievements
Rank 1
answered on 03 Oct 2008, 08:58 PM
Hi,

I found it in my installed demo directory.

Should be able to get it working from there.  Thanks!
Tags
Window
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Jonathan
Top achievements
Rank 1
Share this question
or