2 posts, 0 answers
  1. appdev
    appdev avatar
    223 posts
    Member since:
    Sep 2008

    Posted 20 May 2009 Link to this post

    when i go to my default.aspx page and click on a button, it will open a radwindow which open a radwindow with a getdata.aspx page inside that radwindow. how do i close this radwindow by clicking on an asp button to get back to the main window. please help. thanks.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 21 May 2009 Link to this post

    Hi Duy,

    Add the following client side code for closing the currently opened window.

    <asp:Button ID="Button2" runat="server" Text="Close Window" OnClientClick="CloseWindow(); return false;" /> 
    <script type="text/javascript">  
    function CloseWindow()  
        var oWindow = GetRadWindow();   //Get reference to radwindow  
    function GetRadWindow()  
       var oWindow = null;  
       if (window.radWindow) oWindow = window.radWindow;  
       else if (window.frameElement.radWindow) oWindow = window.frameElement.radWindow;  
       return oWindow;  
    You can find out more information about GetRadWindow() and important RadWindow methods by going through the following links.
    RadWindow Methods
    Opening a RadWindow from Within a RadWindow

Back to Top