RadWindows Overlap

3 posts, 1 answers
  1. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 08 Oct 2009 Link to this post

    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. Answer
    Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 09 Oct 2009 Link to this post

    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.
  3. DevCraft banner
  4. Ludovic Gerbault
    Ludovic Gerbault avatar
    226 posts
    Member since:
    Apr 2009

    Posted 09 Oct 2009 Link to this post

    Thanks, it works like a charm on the mousebuttonup event.
Back to Top