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

Open a Radwindow on Topmost Page ?

1 Answer 78 Views
Window
This is a migrated thread and some comments may be shown as answers.
gzzn
Top achievements
Rank 1
gzzn asked on 15 May 2012, 07:19 AM
i have 4 pages.

1.index.aspx
<iframe src="iframe.aspx">

2.iframe.aspx
<input type="button" onclick="window.radopen('window.aspx', 'win');">

3.window.aspx
<input type="button" onclick="window.radopen('test.aspx', 'top');">

4.test.aspx

when i work in windows.aspx,
how to open a radwindow 'test.aspx' on topmost page 'index.aspx' ?

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 16 May 2012, 11:49 AM
Hello,

You only need to get a reference to the desired window object, in this case this is easiest done by calling window.top.radopen() as the top property is a reference to the topmost frame in the frame tree. Note that this requires that you have a RadWindowManager in the main page as well.


Greetings,
Marin
the Telerik team
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 their blog feed now.
Tags
Window
Asked by
gzzn
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or