Current radwindow

4 posts, 1 answers
  1. Saravanan
    Saravanan avatar
    26 posts
    Member since:
    Mar 2013

    Posted 22 May 2013 Link to this post

    Hi,

    My page has a radwindowmanager with 3 radwindow which are opened at a time. I need to check if a particular window is on the front.
  2. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 22 May 2013 Link to this post

    Hi,

    Please have a look into the following code I tried.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label1" runat="server" Text="RadWindow1"></asp:Label>
                </ContentTemplate>
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow2" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label2" runat="server" Text="RadWindow2"></asp:Label>
                </ContentTemplate>
            </telerik:RadWindow>
            <telerik:RadWindow ID="RadWindow3" runat="server">
                <ContentTemplate>
                    <asp:Label ID="Label3" runat="server" Text="RadWindow3"></asp:Label>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <br />
    <br />
    <telerik:RadButton ID="RadButton1" runat="server" Text="Get" OnClientClicked="OnClientClicked"
        AutoPostBack="false">
    </telerik:RadButton>

    JavaScript:
    <script type="text/javascript">
        function OnClientClicked(sender, args) {
            var window2 = $find('<%=RadWindow2.ClientID %>');
            if (window2.isActive() == true) {
                alert("RadWindow2 is in front");
            }
            else {
                alert("RadWindow2 is not in front");
            }
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Saravanan
    Saravanan avatar
    26 posts
    Member since:
    Mar 2013

    Posted 23 May 2013 Link to this post

    Hi shinu,

    In my page, there is a radmenu on top and a radtreeview on left side of the page. The radwindow should not be draggable over the menu and radtreeview but inside the content area. Can you suggest a solution?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 23 May 2013 Link to this post

    Hi,

    RadWindow provides a RestrictionZoneID property, which restricts window movement (and also maximize, minimize, resize functionality) to a particular area. Please have a look at this demo to see how it works.

    Thanks,
    Shinu.
Back to Top