How to Open Regular Rad Window from RadWindow Model?

5 posts, 0 answers
  1. System Administrator
    System Administrator avatar
    6 posts
    Member since:
    Apr 2007

    Posted 04 Apr 2014 Link to this post

    Hi,
    I have a one RadModel Dialog window.. From that model window how can i open a regular(big) Radwindow?

    Problem Is: New Radwindow opens only inside that Model window
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 06 Apr 2014 in reply to System Administrator Link to this post

    Hi,

    Please have a look into the sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadWindow ID="ModalWindow" runat="server" Modal="true" VisibleOnPageLoad="true">
        <ContentTemplate>
            <telerik:RadButton ID="OpenWindow" runat="server" Text="OpenWin" AutoPostBack="false"
                OnClientClicked="OpenWin">
            </telerik:RadButton>
        </ContentTemplate>
    </telerik:RadWindow>
    <telerik:RadWindow ID="RegularWindow" runat="server">
        <ContentTemplate>
            <asp:Label ID="Label1" runat="server" Text="Regular Window">
            </asp:Label>
        </ContentTemplate>
    </telerik:RadWindow>

    JavaScript:
    function OpenWin(sender, args) {
        var win = $find("<%=RegularWindow.ClientID %>");
        win.MoveTo(500, 400);
        win.show();
    }

    Let me know if you have any concern.
    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. System Administrator
    System Administrator avatar
    6 posts
    Member since:
    Apr 2007

    Posted 07 Apr 2014 in reply to Princy Link to this post

    Thank you Princy for your reply.
    I think you didn't understand my question.
    I have a RadModel Window which  height is "250px" (and NO Maximize Button) and i want to open another Regular RadWindow Height = 700px from Model Window.
    The Regular RadWindow  opens inside of the Model Window not as an like Window.Open
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Apr 2014 in reply to System Administrator Link to this post

    Hi,

    Please try the following sample code snippet to achieve your scenario.

    ASPX:
    <telerik:RadWindow ID="ModalWindow" runat="server" Modal="true" VisibleOnPageLoad="true"
        Height="250px" Behaviors="Close">
        <ContentTemplate>
            <telerik:RadButton ID="OpenWindow" runat="server" Text="OpenWin" AutoPostBack="false"
                OnClientClicked="OpenWin">
            </telerik:RadButton>
        </ContentTemplate>
    </telerik:RadWindow>

    JavaScript:
    <script type="text/javascript">
        function OpenWin(sender, args) {
            var win = window.open("Regularwindow.aspx", '_blank');
            win.focus();
        }
    </script>

    Regularwindow.aspx:
    <telerik:RadWindow ID="RegularWindow" runat="server" VisibleOnPageLoad="true" Height="700px">
    </telerik:RadWindow>

    Hope this will helps.
    Thanks,
    Princy.
  6. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3602 posts

    Posted 09 Apr 2014 Link to this post

    Hi guys,

    I advise that you take a look at this help article that explains how to open a RadWindow from within another RadWIndow: http://www.telerik.com/help/aspnet-ajax/window-programming-opening-from-within-dialog.html. You can also see it in action in this demo: http://demos.telerik.com/aspnet-ajax/window/examples/dialogreturnvalue/defaultcs.aspx by examining the first dialog page.


    Regards,

    Marin Bratanov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017