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

RadWindow.EventArgs Question

1 Answer 87 Views
Window
This is a migrated thread and some comments may be shown as answers.
Craig Hinkel
Top achievements
Rank 1
Craig Hinkel asked on 08 Jan 2009, 07:51 PM
I've been using the radWindow.argument to handle some of the communication between my pages and I've noticed when the same page is displayed multiple times, the argument is never reset. I thought using the DestroyOnClose property would work, but this caused the page to not display after it's first time shown. Is there a best practice for this or do I just need to wipe it out in my javascript onclose methods?

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 10 Jan 2009, 11:31 AM
Hi Craig,

Indeed, you need either to clear the argument when closing the window or as an alternative set DestroyOnClose to true. Keep in mind however, that when this property is set to true, RadWindow's object is destroyed once it is closed. This means that you will not be able to open that same RadWindow again, until the page is reloaded - a new RadWindow with default settings will be opened instead. In such scenario, we recommend to either set the needed properties (width, height, etc.) to a RadWindowManager or to set them by using the client-side API.

I hope this information helps. If you still experience problems, please send me a small sample project and I will check it right away.


All the best,
Georgi Tunev
the Telerik team

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