Refreshing RadWindow

2 posts, 0 answers
  1. Mike
    Mike avatar
    74 posts
    Member since:
    Mar 2013

    Posted 15 Feb Link to this post

    I have a page, and on a user clicks, a RadWindow opens (non-modal) and when an event in the RadWindow happens (user clicks something) another RadWindow opens as a modal.  When the modal closes, I just want to refresh the parent RadWindow, not the parent page (as the RadWindow closes).

    I am using the OnClientClose event of the modal RadWindow, but I'm not sure how to refresh the parent RadWindow.

    I tried using

    function OnBookTimeClientClose() {
        var w = GetRadWindow();
        if (w) {
            w.location.reload();
        }
    }

     

    but the Chrome debugger said "reload is not a valid method"

     

  2. Mike
    Mike avatar
    74 posts
    Member since:
    Mar 2013

    Posted 16 Feb in reply to Mike Link to this post

    I figured out the solution.  There is apparently a Reload() method on the window object, so I just called that;

    function OnBookTimeClientClose() {
        "use strict";
        var wnd = GetRadWindow();
        if (wnd) {
            wnd.Reload();
        }
    }

     

     

  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top