setActive not working with multiple Maximized radwindow open

2 posts, 0 answers
  1. Frank
    Frank avatar
    16 posts
    Member since:
    Oct 2011

    Posted 17 Apr 2014 Link to this post

    If I have multiple Maximized radwindows opened, it seems setActive no longer works.  Is there a way to make the desired maximized rad window on top via client API?

    thank you!
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Apr 2014 in reply to Frank Link to this post

    Hi Frank,

    Please have a look into this sample code snippet which works fine at my end. Please provide your code if it doesn't help.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager1" runat="server" VisibleOnPageLoad="true">
        <Windows>
            <telerik:RadWindow ID="radwinMainWindow" runat="server" VisibleOnPageLoad="true">
                <ContentTemplate>
                    Main Window
                </ContentTemplate>
            </telerik:RadWindow>
            <telerik:RadWindow ID="radwinChildWindow" runat="server" VisibleOnPageLoad="true">
                <ContentTemplate>
                    Child Window
                    <telerik:RadButton ID="radbtnSetActive" runat="server" Text="Activate Main Window" OnClientClicked="ActivateWindow" AutoPostBack="false">
                    </telerik:RadButton>
                </ContentTemplate>
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>

    JavaScript:
    <script type="text/javascript">
        function ActivateWindow(sender, args) {
            var window = $find("<%=radwinMainWindow.ClientID %>");
            window.setActive(true);
        }
    </script>

    Thanks,
    Shinu.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top