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

IsPostBack property not reset when Radwindow closed

2 Answers 83 Views
Window
This is a migrated thread and some comments may be shown as answers.
EmpowerIT
Top achievements
Rank 2
EmpowerIT asked on 23 Oct 2007, 12:20 AM
Hi,
Im displaying a user form using a radwindow. When a user cancels out of the form, I have the rad window close and return to the parent window. However, if they bring the RadWindow up again, the IsPostBack property of the page that is displayed has not been reset, and so the values that were entered previously are still stored there.
I looked through the documentation and the only way i found to get around it was to force the parent page to refresh.  Is it possible to have the IsPostBack property reset without having to refresh the parent page which launched the RadWindow?

I have a cancel button in the form that is displayed in the RadWindow that calls the client side CloseWindow method below.

function GetRadWindow()   
    {   
       var oWindow = null;   
       if (window.radWindow) oWindow = window.radWindow;   
       else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;   
       return oWindow;   
    }   
  
function CloseWindow()   
    {   
        var oWindow = GetRadWindow();   
        oWindow.close(); 
    } 

2 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 23 Oct 2007, 10:36 AM
Hi link64,

To minimize server requests, by default the RadWindow objects are cached on the clientside. Thus, closing a window does not cause it to disappear.

To make sure that each time the page is reloaded from the server, please set the following property on the RadWindow or RadWindowManager - ReloadOnShow = true


Kind regards,
Tervel
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
EmpowerIT
Top achievements
Rank 2
answered on 23 Oct 2007, 11:36 PM
Thanks, that did the trick =)
Tags
Window
Asked by
EmpowerIT
Top achievements
Rank 2
Answers by
Tervel
Telerik team
EmpowerIT
Top achievements
Rank 2
Share this question
or