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

Radwindow - preventing reload of radwindow on postback

1 Answer 147 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 01 Sep 2010, 12:11 AM
Hello,

I am using TabStrip and RadWindow to allow our users to open up different web pages all at once.  I am loading the window and tab dynamically on the server when the user specifies a particular option.  On the client side, I am hiding or showing the appropriate window based on the tab the user chooses.  Everything is working great, but I have come across one issue.  If I do a postback on my main page (the one containing the tabs and radwindows with the child pages), the radwindows seem to lose their contents and reload themselves.  And unfortuntely, a postback occurs each time they add a new tab.  Here is an example:

I add a new tab/window for page A, which is a search page.  On the window for page A, I do a search which brings up some results.  I then add a secondtab for page B.  Adding this tab causes the main page to post back.  After postback, when I open up page A's window, the search is gone and that page has totally reloaded.

I have tried setting 'reloadonshow' to false but have had no luck.  Is there anything I can do, or will I be forced to add the tabs and windows on the client side and prevent postback from occuring on my main page?  Also one thing to note, I have my main page wrapped in a RadAjaxPanel.

Any help would be greatly appreciated!
Richard

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 02 Sep 2010, 11:15 AM
Hi Richard,

If you make a postback on that page, such result is expected - the postback process refreshes the page and all dynamically created objects on it will be created again after the page is loaded. Since the information about your search is not saved anywhere, the search page will be reloaded.
What I would suggest is to examine our MDI demo - I believe it will be of help for your scenario.

Best wishes,
Georgi Tunev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Window
Asked by
Richard
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or