Client side functions are undefined for radwindow

5 posts, 0 answers
  1. Tao
    Tao avatar
    13 posts
    Member since:
    Jun 2012

    Posted 21 May 2014 Link to this post


    I'm opening a radwindow from within a radwindow. I want to use some of the client side functionsm like, center(), set_modal(). But when I run it, the webpage throws error says these functions are undefined. I'm using the following code. Also, is there a way to set radwindow skin using client code.


    01.function GetRadWindow() {
    02.        var oWindow = null; if (window.radWindow)
    03.            oWindow = window.radWindow; else if (window.frameElement.radWindow)
    04.            oWindow = window.frameElement.radWindow; return oWindow;
    05.    }
    07.    function openWinTest() {
    09.        //store the overflow   
    11.        bodyOverflow =;
    13.        htmlOverflow =;
    15.        //hide the overflow   
    17. = "hidden";
    19. = "hidden";
    21.        var oBrowserWnd = GetRadWindow().BrowserWindow;
    24.        var url = ""
    26.        oBrowserWnd.radopen(url, "", 1100, 620);
    28.        oBrowserWnd.set_modal(true);
    29.    }

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 May 2014 in reply to Tao Link to this post

    Hi Tao,

    Please try the below JavaScript code to open a RadWindow from another RadWindow.

    function OpenInnerWindow(sender, args) {
        var oBrowserWnd = radopen('', null);;

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Tao
    Tao avatar
    13 posts
    Member since:
    Jun 2012

    Posted 22 May 2014 in reply to Princy Link to this post

    Hi Princy,

    It doesn't work the way I want it to be. The reason I use GetRadWindow().BrowserWindow is that I want the inner radwindow moves outside the parent window. I'm using this method here. The problem is client side functions will not work in this way.


  5. Marin Bratanov
    Marin Bratanov avatar
    3595 posts

    Posted 23 May 2014 Link to this post

    Hello Tao,

    When you use the radopen() function, it returns a reference to the RadWindow it just opened, as explained here:

    Thus, you can use its client-side API on that object, not on the browser window object that the BrowserWindow field returns:

    In this regard, Shinu's example is correct, only I would name the variables in a more intuitive way to avoid confusion.

    I am attaching a sample that illustrates this. Also, I am attaching another one that shows how to create parent-child relationships if you need to return data.


    Marin Bratanov

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

  6. Tao
    Tao avatar
    13 posts
    Member since:
    Jun 2012

    Posted 27 May 2014 in reply to Marin Bratanov Link to this post

    This is very helpful! Thank you!
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017