IsPostBack property not reset when Radwindow closed

3 posts, 0 answers
  1. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 22 Oct 2007 Link to this post

    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.

    1function GetRadWindow()   
    2    {   
    3       var oWindow = null;   
    4       if (window.radWindow) oWindow = window.radWindow;   
    5       else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;   
    6       return oWindow;   
    7    }   
    8  
    9function CloseWindow()   
    10    {   
    11        var oWindow = GetRadWindow();   
    12        oWindow.close(); 
    13    } 

  2. Tervel
    Admin
    Tervel avatar
    1337 posts

    Posted 23 Oct 2007 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. EmpowerIT
    EmpowerIT avatar
    117 posts
    Member since:
    Jun 2007

    Posted 23 Oct 2007 Link to this post

    Thanks, that did the trick =)
Back to Top