2 modal windows - get handle on first pop up

2 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 11 Nov 2015 Link to this post

    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();
    }

     

  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 11 Nov 2015 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top