How to get a client side reference to a RadWindow opened on the client side as well?

deeisner
deeisner used Ask the Experts™
on
I'm trying to get a client side javascript reference to a RadWindow opened by a call to radopen().

Example:

function OpenAWin() {
    var oWnd = radopen(null, "myWindow", width, height);
}

How do I get a reference to "myWindow" later on the client side? I do not want a global variable as I may need to open several windows on the same browser.
And I can't use a server-side instantiation of the window either.

Thanks!

-David
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Commented:
Ok. Found the answer. All that was needed was a find$

so,

        var oWnd = $find("myWindow");
        oWnd.Close();

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial