Radwindow as a user control

2 posts, 0 answers
  1. Bob Fenton
    Bob Fenton avatar
    9 posts
    Member since:
    May 2010

    Posted 26 Nov 2012 Link to this post

    Hello,

    I am trying to build RadWindow functionality into a user control.

    The user control contains the mark up for the radwindowmanager and everything is working in that I can get the window to open and apply all the properties (skin, size, position, behaviours etc) I need.

    However also want to add an OnClientClose option to refresh the underlying page.

    To do this I am envoking the following script from the page that opened the radwindow:

    function GetRadWindow() {
    var oWindow = null;

     

    if (window.radWindow) oWindow = window.radWindow;

     

    else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;

     

    return oWindow;

     

    }


    but this function always return a "null or not an object error".
    Any advice would be much appreciated.

    Bob

  2. Bob Fenton
    Bob Fenton avatar
    9 posts
    Member since:
    May 2010

    Posted 27 Nov 2012 Link to this post

    Please ignore this post. I was just being dumb :)
Back to Top