Window

Controls

Rate this demo

Thank you for your post!
Submit a support ticket
If you have an active license or trial, you have access to dedicated support from Telerik’s developers. Response time is 24h for active licenses and 72h for trials, Mon-Fri.
Post in the forums
If you don’t have access to support or would like to help other people by sharing your problem, reach out to our active community in the forums.

Window - RadWindowManager Client-side API

RadWindowManager methods









 RadWindowManager

In Telerik UI for ASP.NET AJAX, the RadWindowManager is not mandatory to be present on the page in order to show a RadWindow. Using the RadWindowManager however, is still a convenient way to declare common properties for all RadWindow that will be created with it or are already declared in its Windows collection.

On the client-side, the RadWindowManager takes care of:

  • creating and opening new windows
  • taking care of the radalert, radconfirm and radprompt dialogs - you must have a RadWindowManager control on your page in order to show these dialogs.
  • providing a reference to a RadWindow
  • group functions to allow RadWindows' manipulating at once (for example - minimizing, restoring or maximizing all RadWindows on the page)
C# VB
Show code in new window Demo isolation steps
<%@ Page Language="C#"  %>

<%@ Register TagPrefix="qsf" Namespace="Telerik.QuickStart" %>
<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Client-Side API of RadWindowManager| RadWindow demo</title>
     <script src="scripts.js" type="text/javascript"></script>
     <link href="styles.css" rel="stylesheet" />
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="QsfSkinManager" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator ID="QsfFromDecorator" runat="server" DecoratedControls="All" EnableRoundedCorners="false" />
     <div class="smallModule" style="float: left; margin: 10px 10px 0 0;">
          <div class="rc1">
               <div class="rc2">
                    <div class="rc3" id="offsetElement" style="width: 600px; height: 400px">
                         <telerik:RadWindowManager runat="server" RestrictionZoneID="offsetElement" ID="RadWindowManager1"
                              EnableShadow="true" ShowOnTopWhenMaximized="false">
                              <Windows>
                                   <telerik:RadWindow ID="test1" NavigateUrl="../../TestPage/Default.html" VisibleOnPageLoad="true"
                                        Top="20" Left="100" runat="server">
                                   </telerik:RadWindow>
                                   <telerik:RadWindow NavigateUrl="../../TestPage/Default.html" VisibleOnPageLoad="true"
                                        ID="test2" Top="60" Left="160" runat="server">
                                   </telerik:RadWindow>
                              </Windows>
                         </telerik:RadWindowManager>
                    </div>
               </div>
          </div>
     </div>
     <qsf:ConfiguratorPanel runat="server" ID="ConfigurationPanel1" Height="400" Title="RadWindowManager methods"
          Orientation="Vertical" Expanded="true">
          <asp:RadioButtonList ID="RadioButtonList1" AutoPostBack="false" runat="server">
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="cascade()" Text="Cascade"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Selected="true" Value="restoreAll()"
                    Text="Restore All"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="minimizeAll()" Text="Minimize All"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="maximizeAll()" Text="Maximize All"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="closeAll()" Text="Close All"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="showAll()" Text="Show All"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="minimizeActiveWindow()" Text="Minimize Active Window"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="restoreActiveWindow()" Text="Restore Active Window"></asp:ListItem>
               <asp:ListItem onclick="controlWindowButtons(this.value)" Value="closeActiveWindow()" Text="Close Active Window"></asp:ListItem>
          </asp:RadioButtonList>
          <div>
               <ul class="controlButtons">
                    <li>
                         <button onclick="return OpenWindow()" id="button2">
                              Open with radopen</button></li>
                    <li>
                         <button onclick="return OpenAlert()">
                              Open radalert</button></li>
                    <li>
                         <button onclick="return OpenPrompt()">
                              Open radprompt</button></li>
                    <li>
                         <button onclick="return OpenConfirm()">
                              Open radconfirm</button></li>
               </ul>
          </div>
     </qsf:ConfiguratorPanel>
     <br class="qsf-clear-float" />
    </form>
</body>
</html>
Telerik UI for ASP.NET AJAX Q3'14 Release is here