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

setActive not working with multiple Maximized radwindow open

1 Answer 11 Views
Window
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 17 Apr 2014, 10:54 PM
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!

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 19 Apr 2014, 05:16 AM
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.
Tags
Window
Asked by
Frank
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Share this question
or