Close radwindow when button click inside a formview

2 posts, 0 answers
  1. MARS-Jainith
    MARS-Jainith avatar
    6 posts
    Member since:
    Nov 2012

    Posted 22 Nov 2012 Link to this post

    I have a formview inside my radwindow.  If close button is clicked inside a formview I want the window to close.
    I tried to call javascript to close window, event is fired, but it does not close the window.
    **********  Javascript ************

     function GetRadWindow() {
                    var oWindow = null;
                    if (window.radWindow)
                        oWindow = window.radWindow;
                    else if (window.frameElement.radWindow)
                        oWindow = window.frameElement.radWindow;
                    return oWindow;

                function Close() {
                    var arg = new Object();
                    var oWnd = GetRadWindow();

    ********** Button to close the radwindow inside formview **************
          <asp:LinkButton ID="lnkBtnClose" runat="server" CausesValidation="False" CommandName="Close"                                    Text="Close" ToolTip="Close"  OnClientClick="Close(); return false;" />
  2. Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 23 Nov 2012 Link to this post

    Hello MARS-Jainith,

    Are you using the ContentTemplate of the RadWindow control? If so, you can't use the GetRadWindow function to get a reference to the RadWindow. You'll need to close the RadWindow directly, like so:


    I hope that helps.
  3. DevCraft R3 2016 release webinar banner
Back to Top