RadWindow and IE Window Focus Behavior

4 posts, 0 answers
  1. Johann Herunter
    Johann Herunter avatar
    9 posts
    Member since:
    Nov 2009

    Posted 23 Jun 2010 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Jun 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Rod
    Rod avatar
    1 posts
    Member since:
    Aug 2013

    Posted 14 Nov 2013 Link to this post

    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.
  5. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3599 posts

    Posted 15 Nov 2013 Link to this post

    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.
Back to Top