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

Hide Method of RadWindow

1 Answer 34 Views
Window
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Robert asked on 26 Oct 2011, 10:22 PM
I'm writing to ask if there are examples of utilizing the hide method of the RadWindow - to make the RadWindow invisible;

Thanks in advance for any insight;  Best regards - Rob

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 27 Oct 2011, 05:57 AM
Hello Robert,

You can try the following to make the RadWindow invisible.

ASPX:
<telerik:RadWindowManager ID="RadWindowManager1" runat="server">
 <Windows>
    <telerik:RadWindow ID="RadWindow1" runat="server" VisibleOnPageLoad="true">
     <ContentTemplate>
      <asp:Button ID="btn" Text="hide" runat="server" OnClientClick="OnClientClick();return false;" />
     </ContentTemplate>
    </telerik:RadWindow>
 </Windows>
</telerik:RadWindowManager>

JS:
<script type="text/javascript">
 function OnClientClick()
 {
   var win = $find('<%=RadWindow1.ClientID %>');
   win.hide();
 }
</script>

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