Hide Method of RadWindow

2 posts, 1 answers
  1. Robert
    Robert  avatar
    68 posts
    Member since:
    Feb 2009

    Posted 26 Oct 2011 Link to this post

    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
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 27 Oct 2011 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top