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

RadWindows Overlap

2 Answers 88 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ludovic Gerbault
Top achievements
Rank 1
Ludovic Gerbault asked on 08 Oct 2009, 10:32 AM
Hello

I'm having an issue displaying a RadWindow properly.

There is a first Radwindow which is open in modal mode.

In this window, there is an Image on which I've attached a MouseButtonDown event which is supposed to open another radwindow (modal or not, doesn't matter) which displays the same image in full size.

The thing is, the second radwindow always open behind the first one.

I've tried to play with the Canvas ZIndex property of both windows, I've tried the BringToFront property, the IsActiveWindow property and playing with the owner and centerowner properties, nothing works so far.

What am I missing ?

Ludovic

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 09 Oct 2009, 08:27 AM
Hi Subileau,

The RadWindow controls calls its BringToFront method when the MouseClick event is fired and when you open a RadWindow on MouseDown event it happens before the MouseClick event is fired, so you open a new RadWindow and just after that the first RadWindow control calls its BringToFront method. What you could do is to open the new window when the click event is fired or at least on the mouse up event.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ludovic Gerbault
Top achievements
Rank 1
answered on 09 Oct 2009, 10:24 AM
Thanks, it works like a charm on the mousebuttonup event.
Tags
Window
Asked by
Ludovic Gerbault
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Ludovic Gerbault
Top achievements
Rank 1
Share this question
or