RadWindows not modal and not resize

6 posts, 1 answers
  1. Carlos
    Carlos avatar
    7 posts
    Member since:
    Aug 2011

    Posted 07 Mar 2012 Link to this post

    Hi,

    I have one page with the window component.
    <telerik:RadWindowManager ID="RadWindowManager2" runat="server" EnableShadow="true">
            <Windows>
                <telerik:RadWindow ID="RadWindow1" runat="server" AutoSize="true" VisibleStatusbar="false"
                    Modal="true">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>

    I display that with this function.

    function openRadWin() {
                    radopen("criteria.aspx", "RadWindow1");
                }

    The window opened, and works fine, but the size not change. If I write width= "600px" or heigth="800px" the window size is the same and propertie modal = true doesn't work. I don't know what happened.

    I see this example  http://demos.telerik.com/aspnet-ajax/window/examples/contenttemplatevsnavigateurl/defaultvb.aspx but not work for me.


    Please help me!!
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 08 Mar 2012 Link to this post

    Hello,

    Take a look into the following.
    Set Autosize= false for a Radwindow in javascript

    Thanks,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. rdmptn
    rdmptn avatar
    72 posts
    Member since:
    Aug 2011

    Posted 08 Mar 2012 Link to this post

    Or here: http://www.telerik.com/help/aspnet-ajax/radwindow-troubleshooting-wrong-window-opened.html. It looks like you open the wrong RadWindow1, which is a pointer for the presence of more than one manager on the rendered page.
  5. Carlos
    Carlos avatar
    7 posts
    Member since:
    Aug 2011

    Posted 08 Mar 2012 Link to this post

    Thanks for your reply. Now working
  6. Fred
    Fred avatar
    2 posts
    Member since:
    Dec 2010

    Posted 08 Apr 2014 Link to this post

    Quincy, your link is broken.

    I dont know what it was that fixed OP's problem, but Im having the same one.
  7. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 09 Apr 2014 in reply to Fred Link to this post

    Hi Fred,

    Please try the following sample code snippet which works fine at my end.

    ASPX:
    <telerik:RadWindowManager ID="RadWindowManager2" runat="server" EnableShadow="true">
        <Windows>
            <telerik:RadWindow ID="RadWindow1" runat="server"
                Modal="true">
            </telerik:RadWindow>
        </Windows>
    </telerik:RadWindowManager>
    <asp:Button ID="Button1" Text="open window" runat="server" OnClientClick="openRadWin(); return false;" />

    JavaScript:
    <script type="text/javascript">
        function openRadWin() {
            var win = $find("<%=RadWindow1.ClientID %>");
            win.autoSize();
            radopen("2WinUpload.aspx", "RadWindow1");
        }
    </script>

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