If you have set the ReloadOnShow property of the RadWnidow you open to true, or if you have set the manager's DestroyOnClose to true you will lose the content in the form. Here is what would happen in each case:
- ReloadOnShow=true - when you show the RadWindow it will append a random querystring to the provided URL which will perform a new request for the page and the server will return a fresh version. This is the purpose of the property. Setting it to false prevents this logic from executing, so showing a RadWindow with the same URL as the current will not cause a new request. Note that this applies only for the case when you only call the show() method of the control. If you go through the setUrl() method or you pass an URL to the radopen()/open() methods a request for the URL will be performed.
- DestroyOnClose=true - when closed the RadWindow will be disposed, so you cannot re-show the same instance. A new one will be created, so naturally a new request to the server will be made
In case you only pass one parameter in the querystring (e.g. a record ID) you can store it in the RadWindow variable in a custom field and read it after getting the reference but before setting the URL. If it is the same - only call show(), if it is different - setUrl() with the new value.
All the best,
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed