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

2 modal windows - get handle on first pop up

1 Answer 72 Views
Window
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 11 Nov 2015, 09:53 AM

Hi all

 I have a pop up modal window, which itself has a further pop up window.

I have Teleriks script to refresh the underlying window:

 And for the first pop up its works fine, problem is I have the same script on the second pop up, but the GetRadWindow() returns oWindow is undefined.

What do I need to do to get the GetRadWindow() to find both the original page and the first pop up?

function GetRadWindow() {
    var oWindow = null;
    if (window.radWindow) oWindow = window.radWindow;
    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;
    return oWindow;
}
 
function CloseAndRebind(args) {
  GetRadWindow().BrowserWindow.refreshGrid();
  GetRadWindow().Close();
}

 

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 11 Nov 2015, 10:33 AM

Hi Andy,

I advise you start from the following resources:

Regards,

Marin Bratanov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Window
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or