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

RadWindow and IE Window Focus Behavior

3 Answers 93 Views
Window
This is a migrated thread and some comments may be shown as answers.
Johann Herunter
Top achievements
Rank 1
Johann Herunter asked on 23 Jun 2010, 02:36 PM
Hello Telerik Team,

we have a strange behavior after changing the ASP.NET AJAX Telerik Version from "2009.3.1103.35" to "2010.1.519.35":
 
We have a ASPX page, which opens a new RadWindow in Modal mode. This window is opened via "window.radopen(...)".
The RadWindow has also get declared a close event handler with "add_close(...)".

When the RadWindow closes, the calling page opens a new IE window with "window.open(...)" in the close event function and calls  "newWin.focus()" on the new window.  

The parent page is not reloaded at this point.


With the previous (old) Telerik Version, the new window was opened as expected and set to the front.

After updating the Telerik Version, the new window was already opened in the close event handler, but the focus did not get assigned to the new window. It seems, that the parent window is grabbing the focus back. Even with the JS calls:

Parent Page: self.blur(); newWindow.focus();
New Window Page: self.focus();

the new window is moved to the background.


Do you know of any issues when using the RadWindow in this way in the version as defined above?


Kind regards,
Johann

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 25 Jun 2010, 02:21 PM
Hi Johann,

I am afraid that I am not familiar with such problem. Could you please open a support ticket and send me a small sample project so I could get a better view over your exact setup?

All the best,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Rod
Top achievements
Rank 1
answered on 14 Nov 2013, 03:06 PM
Having the same issue here with the Radwindow.  Focus is set back to the calling, parent, window and the window that was open flashes to the foreground then disappears.
0
Marin Bratanov
Telerik team
answered on 15 Nov 2013, 09:47 AM
Hello,

This works fine for me in IE, Chrome and Firefox:
<telerik:RadWindow ID="RadWindow1" runat="server" OnClientClose="OnClientClose" VisibleOnPageLoad="true">
</telerik:RadWindow>
<script type="text/javascript">
    function OnClientClose()
    {
        window.open();
    }
</script>

In case the browser window that gets opened loses focus I can suggest a few things:
- look for custom code that sets focus in the first page. This can be JavaSCript, a partial postback that sets server focus, anything, really
- add a small timeout around the call to open() and focus() for the browser window to let any other code finish its work before opening the new popup.


Regards,
Marin Bratanov
Telerik
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 the blog feed now.
Tags
Window
Asked by
Johann Herunter
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Rod
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or