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

Radwindow as a user control

1 Answer 66 Views
Window
This is a migrated thread and some comments may be shown as answers.
Bob Fenton
Top achievements
Rank 1
Bob Fenton asked on 26 Nov 2012, 07:00 PM
Hello,

I am trying to build RadWindow functionality into a user control.

The user control contains the mark up for the radwindowmanager and everything is working in that I can get the window to open and apply all the properties (skin, size, position, behaviours etc) I need.

However also want to add an OnClientClose option to refresh the underlying page.

To do this I am envoking the following script from the page that opened the radwindow:

function GetRadWindow() {
var oWindow = null;

 

if (window.radWindow) oWindow = window.radWindow;

 

else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

 

return oWindow;

 

}


but this function always return a "null or not an object error".
Any advice would be much appreciated.

Bob

1 Answer, 1 is accepted

Sort by
0
Bob Fenton
Top achievements
Rank 1
answered on 27 Nov 2012, 06:25 PM
Please ignore this post. I was just being dumb :)
Tags
Window
Asked by
Bob Fenton
Top achievements
Rank 1
Answers by
Bob Fenton
Top achievements
Rank 1
Share this question
or