Parent RadWindow appears in front of the child RadWindow after switching applications

4 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    8 posts
    Member since:
    Feb 2012

    Posted 10 Jan 2014 Link to this post

    Hi guys,

    I noticed a problem with multiple modal RadWindows when switching from silverlight application to another application then going back to the silverlight application (using alt-tab).

    I made a small silverlight application to demonstrate the problem however I can't attach the zip file to this post because it accepts only images. I'll be more than happy to provide you the application if you tell me how.

    Here is what the application do:

    The application opens a parent RadWindow on button click. In the parent RadWindow another button opens a child RadWindow. All RadWindows are modal. As expected the child window is in front of the parent window.

    Now switch to any other window (using mouse or alt-tab) then come back to the silverlight application. The parent window will be in front of the child window.

    This problem happens with IE, Firefox and Opera. However with Chrome it works as expected.
    When switching back to the silverlight application, I noticed that the child window "deactivated" event is triggered then the parent window "activated" event is triggered in all browsers except Chrome.

    Is there something that I'm missing?

    Thanks,

    Alex

  2. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 15 Jan 2014 Link to this post

    Hello Alex,

    I've tried to reproduce your problem, but unfortunately I couldn't. I'm sending you my test app, can you verify it is working fine on your side?

    In order to attach your project you can open a new support ticket and send it to us there. This way we'll be able to investigate it further.

    I'm looking forward to hearing from you.

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. DevCraft banner
  4. Alexandre
    Alexandre avatar
    8 posts
    Member since:
    Feb 2012

    Posted 15 Jan 2014 Link to this post

    Thanks for the reply.

    I've tried your test app and it's working fine on my side. It's very similar to the one I made so I searched for differences between the two.

    In my app the child window has only a textblock and in yours there is a button. When the child window is created, the button in your app got the focus. In mine, the focus stays on the parent window. So when I switch between the app and another window, the parent window comes in front due to the focus on it. I think the modal functionality should have priority over the focus.

    You can modified your app to reproduce the problem by duplicating the ModalWindow.xaml file. Replace the button by a textblock in the second window. Make changes so that MainPage.xaml calls ModalWindow.xaml who calls ModalWindow2.xaml. You should have the same problem.

    Thanks,

    Alex
  5. Rosen Vladimirov
    Admin
    Rosen Vladimirov avatar
    640 posts

    Posted 16 Jan 2014 Link to this post

    Hi Alex,

    The modal RadWindows in Silverlight are not exactly the same as WPF/Windows ones. When there isn't an element which can be focused, the focus remains in its previous location. Unfortunately there isn't much we can do as this is framework limitation. But there is an easy workaround - if you want to show only text, you can just add a close button at the bottom of the window and this way it will get the focus. It is similar as using:
    RadWindow.Alert("Hello");

    In fact you can modify the Alert window as it is doing just this - showing text.

    Hopefully this helps. Feel free to contact us in case you have any problems or concerns.

    Regards,
    Rosen Vladimirov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top