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

[Solved] DetroyOnClose Also "Destroys" format.

1 Answer 117 Views
Window
This is a migrated thread and some comments may be shown as answers.
David Nowak
Top achievements
Rank 1
David Nowak asked on 30 Jan 2008, 01:04 AM
I have a RadWindow that will display different content based on what the user selects from the parent window.  Therefore, I don't want the form to display what was shown before; I want to destroy the RadWindow and open it new each time.  However, after its first load and subsequent close, the next open of the window ignores the formatting that included in the RadWindowManager (size, skin, etc.).

Can I destroy the window on close and get it to display correctly again?

Thank You,

David Nowak.

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Jan 2008, 01:16 PM
Hello David,

I am not quite sure if I understand you correctly. Basically when you set DestroyOnClose to true, the object of the RadWindow that is shown will be destroyed once the window is closed. If you call the opening code again, a new RadWindow will be shown that will get its settings from the RadWindowManager in which it was declared. For convenience I attached a short video that shows the described behavior.

You say however, that when the RadWindow in your application is destroyed, the next RadWindow that is called does not get the RadWindowManager's settings, am I correct? If this is so, can you please send us in a support ticket a small sample project which reproduces this problem? I will check it and get back to you right away.




Sincerely yours,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Window
Asked by
David Nowak
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or