Refresh parent window not working on window close

2 posts, 0 answers
  1. Simon
    Simon avatar
    3 posts
    Member since:
    Aug 2011

    Posted 09 Sep 2011 Link to this post

    I am opening a radwindow, a form is submitted in the radwindow, user closes the radwindow and then the parent should refresh but it doesn't seem to be refreshing the page or data for some reason...

    <script type="text/javascript">
            function openRateOLWin(OLID) {
                var oWnd = radopen("/ContentZone/rateol.aspx?OLID=" + OLID, "RadWindow1");
                oWnd.setSize(640, 340);

            function RefreshParentPage()//function in parent page
                document.location.href = document.location.href;

    <telerik:radwindowmanager id="RadWindowManager1" showcontentduringload="false" visiblestatusbar="false"
            reloadonshow="true" runat="server" skin="Vista" enableshadow="true">
                <telerik:RadWindow ID="RadWindow1" runat="server" Behaviors="Move, Resize, Close" Skin="Vista" OnClientClose="RefreshParentPage"></telerik:RadWindow>
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Sep 2011 Link to this post

    Hello Simon,

    You can hook the OnClientColose to the RadWindow and refresh the page using document.location.reload().
    Try the following Javascript.
    <script type="text/javascript">
    function RefreshParentPage()//function in parent page
    function closeWin() //function in content page
      var oWnd = GetRadWindow();
      top.location.href = top.location.href;
    This function should be placed in the parent page - where your RadWindow / RadWindowManager is. This function should also be hooked to the RadWindow with the OnClientClose property.

Back to Top