window.radopen ignoring attributes

2 posts, 0 answers
  1. Kim
    Kim avatar
    47 posts
    Member since:
    Jul 2013

    Posted 09 Nov 2013 Link to this post

    I have the following code in a aspx page. Thew window opens but it ignores the size settings. Even if i delete the RadWindowManager from the page it still opens. It seems as if it ignores the RadWindowManager on the page and just does what it wants. what am i doing wrong?



                    function EditClick(sender, args) {
                        window.radopen("campEdit.aspx?campID=" + sender,"CampEdit");
                    }



     <telerik:RadWindowManager ID="RadWindowManager1" runat="server" onclientclose="RadWindowManager1_Close" CssClass="TelerikModalOverlay">
            <Windows>
                <telerik:RadWindow ID="CampEdit" runat="server" Title="Editing record" Height="675px"
                Width="635px" Left="150px" ReloadOnShow="true" ShowContentDuringLoad="false"
                Modal="true" VisibleStatusbar="false"  AutoSize="false" Behaviors="Close" />

            </Windows>
        </telerik:RadWindowManager>  


    [EDIT] 

    It seems as if it is functioning off the RadWindowManager  on the master page. How do i get it to use the RadWindowManager on the child page? 



  2. Marin Bratanov
    Admin
    Marin Bratanov avatar
    3596 posts

    Posted 11 Nov 2013 Link to this post

    Hi Kim,

    Your problem and its solutions are described here: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-wrong-window-opened.html.
    Also, you can use the client-side API of the control to modify it after showing it: http://www.telerik.com/help/aspnet-ajax/window-programming-radwindow-methods.html, e.g.:
    var wnd =  window.radopen("campEdit.aspx?campID=" + sender,"CampEdit");;
    wnd.setSize(800, 600);

    Or even set the desired dimensions in the radopen method: http://www.telerik.com/help/aspnet-ajax/window-programming-opening.html:
    window.radopen("campEdit.aspx?campID=" + sender,"CampEdit", width, height);



    Regards,
    Marin Bratanov
    Telerik
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top