Close RadWindow Using RadButton

2 posts, 0 answers
  1. Ivy
    Ivy avatar
    30 posts
    Member since:
    Feb 2013

    Posted 14 Feb 2013 Link to this post


    I am using a RadButton inside my RadWindow and I want to close the RadWindow using this button. Is it possible to close the window using some client side code?

    Thanks in advance,
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Feb 2013 Link to this post

    Hello Ivy,

    You can try the following client side code to close the RadWindow from a RadButton.

    <script type="text/javascript">
        function Close() {
            var window1 = $find('<%=radWindow1.ClientID %>');

    You can attach the above Javascript in the OnClientClicked event of the RadButton and set the RadButton's AutoPostBack property to false.

  3. DevCraft R3 2016 release webinar banner
Back to Top