I've read the information at http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html and I'm now trying to let the child RadWindow 'talk' back to its parent RadWindow.
When the user presses OK in the child window, a function in the parent RadWindow should be called, passing one or more arguments.
I've tried using 'opener' in the child RadWindow to reference the parent RadWindow, but it is undefined.
I've tried explicitly specifying a parent property the following way:
But when I try to reference "window.radParent" in the child RadWindow it is also undefined.
How can I let a parent and child RadWindow communicate with each other?
When the user presses OK in the child window, a function in the parent RadWindow should be called, passing one or more arguments.
I've tried using 'opener' in the child RadWindow to reference the parent RadWindow, but it is undefined.
I've tried explicitly specifying a parent property the following way:
function
OpenChildRadWindow(p_sURL, p_iWidth, p_iHeight) {
var
l_oBrowserWnd = GetRadWindow().BrowserWindow;
setTimeout(
function
() {
var
l_oWindow = l_oBrowserWnd.radopen(p_sURL,
"newRadWindow"
, p_iWidth, p_iHeight);
l_oWindow.radParent =
this
;
l_oWindow.InitialBehaviors = Telerik.Web.UI.WindowBehaviors.None;
l_oWindow.set_modal(
true
);
}, 0);
}
How can I let a parent and child RadWindow communicate with each other?