This is a migrated thread and some comments may be shown as answers.
RadWindow not always on Top
3 Answers 47 Views
This is a migrated thread and some comments may be shown as answers.
Lee
Top achievements
Rank 1
Lee asked on 13 Oct 2011, 02:38 PM

Hello,

I have a customized rad window in my app that when pressed spawns another rad window. This child rad window will appear on top, as it should, and will accordingly have focus with the parent rad window and everything else on the page 'blacked out' (unable to receive foucs). This works good..

My issue is if this button that spawns the child window is double clicked, and not just double cliked, but done so very fast. I know this is a pretty rare occurence but QA has noticed. What happens is that the first click spawns the child rad window, as it should, but the second click (when done very fast) appears to give focus back to the parent child window before the spawned child window could 'black out' the parent window and page, and lock down the focus. I end up with the child window spawned and visible (but inaccessible), but the parent window still accessible and with focus...

All that the button handler code does is instantiate the rad window, call ShowDialog() and even BringToFront(). (I've tried with/without BringToFront() call). It seems as though the second button click is being processed before the child window's lock down is performed, giving focus and accessibility back to the parent window...

I have been able to replicate this behavior in a very simple, stripped down, sample project, which I have attached for reference. I have also attached a screenshot image, taken from the results of the sample project, to illlustrate the erroneous state.

Please let me know if you need anything else provided.

[ EDIT: I am unable to attach .zip files to this form posting, only images, so I attached the image. I have my company looking into renewing the support license now...Is there somewhere I can email this test project?]


Thanks for the help,

Lee

3 Answers, 1 is accepted

Sort by
0
Lee
Top achievements
Rank 1
answered on 13 Oct 2011, 02:43 PM
Forgot to mention this is with version "v2011.1.315.1040" of the SL Telerik controls...
0
Lee
Top achievements
Rank 1
answered on 18 Oct 2011, 04:47 PM
Is there anybody out there?...
0
Boyan
Telerik team
answered on 18 Oct 2011, 08:59 PM
Hello Lee,

If I have understood your scenario right, your problem should be fixed by using a Dispatcher. Try the following code:
Dispatcher.BeginInvoke(() => win.ShowDialog());
If this doesn't help please let me know.

Best wishes,
Boyan
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Asked by
Lee
Top achievements
Rank 1
Answers by
Lee
Top achievements
Rank 1
Boyan
Telerik team
Share this question
or