multible windows

4 posts, 0 answers
  1. reema
    reema avatar
    30 posts
    Member since:
    Oct 2008

    Posted 02 May 2009 Link to this post

    hi,

    in my application I have multiple windows how can I know which one is on top , in other words which one is the active one or the selected one ? ..

    thx
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 03 May 2009 Link to this post

    Hi reema,

    This is a good suggestion for a feature. Currently you cannot distinguish the top window among several. We will put this feature in our priority list for the next release. Please feel free to contact us for any further assistance.

    All the best,
    Hristo Borisov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. Bichitra
    Bichitra avatar
    34 posts
    Member since:
    Aug 2008

    Posted 03 May 2009 Link to this post

    Hi,

    I have one question related to this post.

    I have opened 2 radwindow, I observed that tha last window(opened) zorder is always top. If I focus on any control on 1st Radwindow which  is opned before 2nd Window  is not changed zorder (should be greater or active window). unless i click on header of this window. Can you please tell the way how to activate the window as put focus on any control inside the window.

    Thanks
    Bichitra
  5. Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 06 May 2009 Link to this post

    Hi Bichitra,

    The following C# code will bring the window that contains the focused TextBox on top:

     

    private void Button_Click(object sender, RoutedEventArgs e)
    {
        
    RadWindow window = new RadWindow();
        window.Content =
    new StackPanel()
        {
            Children =
            {
                new TextBox()
            }
        };
        window.GotFocus +=
    new RoutedEventHandler(window_GotFocus);
        window.Show();
    }

    void window_GotFocus(object sender, RoutedEventArgs e)
    {
        (sender
    as RadWindow).BringToFront();

     

    }

    Greetings,
    Valeri Hristov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Back to Top