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

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

3 Answers 142 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alexandre
Top achievements
Rank 1
Alexandre asked on 10 Jan 2014, 07:58 PM
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

3 Answers, 1 is accepted

Sort by
0
Rosen Vladimirov
Telerik team
answered on 15 Jan 2014, 09:42 AM
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 >>
0
Alexandre
Top achievements
Rank 1
answered on 15 Jan 2014, 06:36 PM
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
0
Rosen Vladimirov
Telerik team
answered on 16 Jan 2014, 04:20 PM
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 >>
Tags
Window
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Rosen Vladimirov
Telerik team
Alexandre
Top achievements
Rank 1
Share this question
or