Can I close the radwindow from within the page that the radwindow is displaying? For example, I would like to put my "close" button in the content of the page that is being opened and have this close the radwindow. Thank you for any suggestions.
2 Answers, 1 is accepted
0
Georgi Tunev
Telerik team
answered on 31 Oct 2007, 08:03 AM
Hi cserold,
If you want to close the window from the dialog itself you will need first a backreference to the containing r.a.d.window and then you can use the Close() method to close the window. e.g (in your dialog window):
To get a backreference to the containing r.a.d.window, the following script should exist (be manually inserted) in the dialog page.
function GetRadWindow() { var oWindow = null; if (window.radWindow) oWindow = window.radWindow; else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow; return oWindow; }
The Close button closes the containing window like this: