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

Refreshing RadWindow

1 Answer 91 Views
Window
This is a migrated thread and some comments may be shown as answers.
Mike
Top achievements
Rank 1
Mike asked on 15 Feb 2016, 11:29 PM

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"

 

1 Answer, 1 is accepted

Sort by
0
Mike
Top achievements
Rank 1
answered on 16 Feb 2016, 04:41 PM

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();
    }
}

 

 

Tags
Window
Asked by
Mike
Top achievements
Rank 1
Answers by
Mike
Top achievements
Rank 1
Share this question
or