Radwindow - preventing reload of radwindow on postback

2 posts, 0 answers
  1. Richard
    Richard avatar
    29 posts
    Member since:
    Jun 2010

    Posted 31 Aug 2010 Link to this post

    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
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 Sep 2010 Link to this post

    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
Back to Top