This is a migrated thread and some comments may be shown as answers.

Close RadWindow Using RadButton

1 Answer 67 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ivy
Top achievements
Rank 1
Ivy asked on 15 Feb 2013, 01:58 AM
Hello,

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,
Ivy.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 15 Feb 2013, 05:40 AM
Hello Ivy,

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

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

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

Thanks,
Princy.
Tags
Window
Asked by
Ivy
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or