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

3rd level radwindow to 2nd level radwindow

1 Answer 22 Views
Window
This is a migrated thread and some comments may be shown as answers.
neebs
Top achievements
Rank 2
neebs asked on 09 Aug 2011, 09:53 PM
Hi,

I'm used to refreshing a parent grid from a radwindow using the following code:

function CloseOnReload() {
    GetRadWindow().BrowserWindow.refreshChart();
    GetRadWindow().Close();
}

and in the parent page:

function refreshChart() {
    debugger;
    $find("<%= RadAjaxManagerBinAssignmentDetail.ClientID %>").ajaxRequest("RefreshChart");
}

However I now have a situation where a page opens a RadWindow which then opens another RadWindow. I'd like the second radwindow opened to invoke the first function above, to refresh the 1st RadWindow opened. However it seems to want to address the original browser window. So in summary:

Page opens RadWindow1
RadWindow1 opens RadWindow2
RadWindow2's needs to call a javascript function in RadWindow1 to have it's content refresh when RadWindow2 is closed.

Thanks for anyone's help.

Steve

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Aug 2011, 01:47 PM
Hello Steve,

  You must get a reference to RadWindow1 first. There are several ways to do this - by storing it in a global variable when you first open it, by the $find() method or via the RadWindowManager's getWindowByName() method. This is executed in the context of the main page. Then you can execute a function that is declared in its content page as described in the following help article: http://www.telerik.com/help/aspnet-ajax/window-programming-calling-functions.html.


Best wishes,
Marin
the Telerik team

Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Tags
Window
Asked by
neebs
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or