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

Current radwindow

3 Answers 32 Views
Window
This is a migrated thread and some comments may be shown as answers.
Saravanan
Top achievements
Rank 1
Saravanan asked on 22 May 2013, 10:33 AM
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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 1
answered on 22 May 2013, 10:40 AM
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.
0
Saravanan
Top achievements
Rank 1
answered on 23 May 2013, 07:49 AM
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?
0
Shinu
Top achievements
Rank 1
answered on 23 May 2013, 08:18 AM
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.
Tags
Window
Asked by
Saravanan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Saravanan
Top achievements
Rank 1
Share this question
or