Radwindow Manager should Share List and reference/pointer to Currentley Open Windows

4 posts, 0 answers
  1. Amir
    Amir avatar
    13 posts
    Member since:
    Apr 2008

    Posted 27 Oct 2008 Link to this post

    Hi,

    I have a new feature request, there is often a need to know what windows are currentley open. Be it for handling application states or other situations.
    Therefore I believe Radwindow Manager should share the list of currently open windows and be able to return a reference to a window in that list.

    Thanks,
  2. Hristo Borisov
    Admin
    Hristo Borisov avatar
    298 posts

    Posted 28 Oct 2008 Link to this post

    Hello Amir,

    I strongly agree with you that whenever you are using several RadWindows. it is often necessary to perform some actions on them. For the Q3 release we will include a method that returns a reference to all RadWindows filtered by a boolean delegate function. For example, you will be exposed to the following method:

    public static List<RadWindow> GetWindows(Func<RadWindow, bool> filter) 

    So you can actually solve your problem by just calling the GetWindows function:

    RadWindowManager.GetWindows((w) => w.IsOpen == true); 

    This is just a small fraction of the new functionality that we plan to include for the Q3 release. Thank you for sharing you experience, and please feel free to contact us as soon as possible whenever you want to share your opinion with us.

    st wishes,
    Hristo Borisov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Amir
    Amir avatar
    13 posts
    Member since:
    Apr 2008

    Posted 22 Jan 2009 Link to this post

    Hi,

    Do you have any news about this functionality?

    We really need some window management to make our solution attractive.

    cascading / stacking / side by side

    Cheers,
  4. Boyan
    Admin
    Boyan avatar
    758 posts

    Posted 23 Jan 2009 Link to this post

    Hi Amir,

    This functionality was implemented for Q3 as it is said here. Class RadWindowManager was added. For a reference you can see this example  http://demos.telerik.com/silverlight/#Window/Ordering. It is list on all windows in application. Except for the code shown in the example which closes all windows, you can use it like this :

              private void button1_Click(object sender, RoutedEventArgs e) 
              { 
                   IEnumerable<RadWindow>     windows = RadWindowManager.GetWindows((w) => w.IsPinned == true); 
     
                   textblock.Text = windows.ToList()[0].Header.ToString(); 
     
              } 

    This code returns all windows that are pinned and write the first element(converted to string) in a texblock.

    Thus, you can either get all windows or filter them by some property and then perform actions with them.

    Hope this will fulfill your needs.

    All the best,
    Boyan
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top