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

Query on Radwindow Pop-up

1 Answer 18 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Vaibhav
Top achievements
Rank 1
Vaibhav asked on 10 May 2012, 12:39 PM

I am stuck in a problem with a Radwindow pop-up and need your help.

On Rad Window, when I click on a button, a new pop -up opens and hides behind the previous Radwindow.  In this
 case the javascript code written below

 

 returns incorrect parent.:

 

 

 

var parentPane = parent.getContentPane();

 

 

 

var parentForm = parentPane.getExtContentElement().contentWindow.document;

 

 

 

var TextBox = parentForm.getElementById(TextBoxID);

 

 

Ideally, the parent should be the Rad window from which the new  pop-up was opened but here it is showing "Home.aspx" as its
 parent. I tried window.opener() and other probable workarounds but none of them worked.

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 14 May 2012, 01:16 PM
Hello,

Have you examined this article that is closely related to your scenario: http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html. Note that the BrowserWindow property of the RadWindow instance returns the window object of its parent frame and how a timeout is needed when showing the second RadWindow to make sure it stays on top, properly set as active. Also, when working with iframes the parent frame is referenced via the parent property of the current window object - e.g. window.parent.radopen().


Regards,
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
General Discussions
Asked by
Vaibhav
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or