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

radwindow dosen't have parent

1 Answer 98 Views
Window
This is a migrated thread and some comments may be shown as answers.
Rui
Top achievements
Rank 1
Rui asked on 04 Sep 2008, 03:39 PM
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


RadWindow

window = new RadWindow();

window.Header =

"Janela";

window.Height = 500;

window.Width = 500;

window.WindowStartupLocation =

WindowStartupLocation.CenterParent;

window.WindowAnimation =

WindowAnimation.OnShow;

gs =

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


window.Content = gs;

window.Header =

"Bombeiros";

LayoutRoot.Children.Add(window);

LayoutRoot.UpdateLayout();

window.Show();

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

Rui

1 Answer, 1 is accepted

Sort by
0
Hristo Borisov
Telerik team
answered on 12 Sep 2008, 06:52 AM
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?

Regards,
Hristo Borisov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Window
Asked by
Rui
Top achievements
Rank 1
Answers by
Hristo Borisov
Telerik team
Share this question
or