
I read the section on opening a radwindow from within a radwindow using the following:
function GetRadWindow()
{
var oWindow = null;
if (window.radWindow)
oWindow = window.radWindow;
else if (window.frameElement.radWindow)
oWindow = window.frameElement.radWindow;
return oWindow;
}
var oManager = GetRadWindow().get_windowManager();
oManager .radopen(
'something.aspx', null);
However, my problem is the radwindow launching the second radwindow's OnClientClose event is not being called anymore and I need this in order to look at the argument passed in and see if I need to refresh.
Thanks
8 Answers, 1 is accepted
The code that you shows in your thread is OK and cannot be a reason for this problem. Since I am missing the rest of your logic however, I am afraid that I cannot be of much help.
Could you please open a support ticket and send me the parent page and the content page for the RadWindow from where you are opening the second one? I will check them and get back to you.
Kind regards,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

<
telerik:radwindowmanager id="RadWindowManager1" runat="server" Modal="true" Height="750" Width="1000" ReloadOnShow="true" Behaviors="close" OnClientClose="OnClientClose" Skin="WebBlue" />
function OnClientClose(radWindow)
{
if (radWindow.argument == "selected")
{
$find(
"<%= RadAjaxManager1.ClientID %>").ajaxRequest("selected");
}
}

var oManager = GetRadWindow().get_windowManager();
oManager.open('something.aspx', null);
instead of:
var oManager = GetRadWindow().get_windowManager();
oManager.radopen('something.aspx', null);
is your 'radOpen' function working here as it is giving me an error?


I have Main Window, nested-radWindow1 and then nested-radWindow2 (called from nested-radWindow1).
The nested nested-radWindow2 runs fine but on close gives error:
--> "telerik Can't execute code from a freed script"

var oManager = GetRadWindow().get_windowManager();
var oWindow = oManager.GetWindowByName("wndUserSearch");
oWindow.setUrl(
"test");
oWindow.add_close(OnClientClose);
oWindow.show();
This behavior is expected - every time you open a window, you add the closing function to be executed. You need to either remove the previous one before adding it, or to remove it in the OnClientClose function.
e.g.
oWindow.remove_close(OnClientClose);
oWindow.add_close(OnClientClose);
Sincerely yours,
Georgi Tunev
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.

thanks