radwindow dosen't have parent

2 posts, 0 answers
  1. Rui
    Rui avatar
    27 posts
    Member since:
    Nov 2007

    Posted 04 Sep 2008 Link to this post

    I tryed to add radwindows to my layoutroot, this case a grid, then i tryed to go throw the childrens of layoutroot to store the radwindows that exist... but i don't find any of my radwindows in layoutroot.children. i then tryed to get the parent of the radwindow as sonn as i add it... but is null, it wasnn't no parent..

    is this a bug?

    here some code


    window = new RadWindow();

    window.Header =


    window.Height = 500;

    window.Width = 500;

    window.WindowStartupLocation =


    window.WindowAnimation =


    gs =

    new grid(_boxUrl, cbs_codcorpo.Text.ToString(), "janela");

    window.Content = gs;

    window.Header =





    string pai = window.Parent.ToString();

    this string pai is null.. and ain other places when i try to find in a cycle on layoutroot, i don't find radwindow either...

    If any one can help me on this one..

    thanks alot in advance


  2. Hristo Borisov
    Hristo Borisov avatar
    298 posts

    Posted 12 Sep 2008 Link to this post

    Hello Rui,

    Currently, we remove the RadWindow from its parent to place the control inside a popup control so that you can move the RadWindow around the page. Hence, you aren't able to find the RadWindow in the children collection. Would you elaborate a bit more on what exactly you are trying to achieve? Having these details, we will be able to give you a better response?

    Hristo Borisov
    the Telerik team

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