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">
                <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" />



    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
    Marin Bratanov avatar
    3908 posts

    Posted 11 Nov 2013 Link to this post

    Hi Kim,

    Your problem and its solutions are described here:
    Also, you can use the client-side API of the control to modify it after showing it:, 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:
    window.radopen("campEdit.aspx?campID=" + sender,"CampEdit", width, height);

    Marin Bratanov
    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.
Back to Top