Rad window close and refresh parent page

4 posts, 0 answers
  1. Srinivasa Rao Ranga
    Srinivasa Rao  Ranga avatar
    20 posts
    Member since:
    May 2010

    Posted 12 Dec 2012 Link to this post

    Facing issue when trying to close the radwindow and reload of the parent page.
     
    Below mentioned is the java function used to reload the parent page. Its is giving the warning[Please find the attachment]

    function CloseAndRebind(args) {
    //GetRadWindow().BrowserWindow.location.reload();

    var oWind = GetRadWindow();
    oWind.close();

    GetRadWindow().BrowserWindow.location.reload();

     

    //top.location.href = top.location.href;

    }


    Could you please help me out in resolving this issue, Searched in the forum found the above solution only, but its not working for me.

  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 12 Dec 2012 Link to this post

    Hello Srinivasa,

    That is the expected message when you try to reload a webpage after a postback occurred on the page. You would get the same warning message if you clicked Refresh in your browser after some control on your page performed a postback.

    To resolve this, you can use the following:

    GetRadWindow().BrowserWindow.location.href = GetRadWindow().BrowserWindow.location.href;

    I hope that helps.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Srinivasa Rao Ranga
    Srinivasa Rao  Ranga avatar
    20 posts
    Member since:
    May 2010

    Posted 13 Dec 2012 Link to this post

    Hi Kevin,

    The solution provided is not working for me, the parent page is not reloading. Could you please let me know if i can try in some other way.

  5. rdmptn
    rdmptn avatar
    72 posts
    Member since:
    Aug 2011

    Posted 13 Dec 2012 Link to this post

    Kevin's idea should work...Anyway, you can just add a randon querystring variable at the end to force a refresh. Or use a standard name and replace it to avoid making the URL longer each time.
Back to Top