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

RadWindows not modal and not resize

5 Answers 93 Views
Window
This is a migrated thread and some comments may be shown as answers.
Carlos
Top achievements
Rank 1
Carlos asked on 07 Mar 2012, 11:05 PM
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!!

5 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 1
answered on 08 Mar 2012, 08:09 AM
Hello,

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

Thanks,
Princy.
0
rdmptn
Top achievements
Rank 1
answered on 08 Mar 2012, 11:41 AM
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.
0
Carlos
Top achievements
Rank 1
answered on 08 Mar 2012, 03:50 PM
Thanks for your reply. Now working
0
Fred
Top achievements
Rank 1
answered on 08 Apr 2014, 03:56 PM
Quincy, your link is broken.

I dont know what it was that fixed OP's problem, but Im having the same one.
0
Princy
Top achievements
Rank 1
answered on 09 Apr 2014, 07:10 AM
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.
Tags
Window
Asked by
Carlos
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
rdmptn
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Fred
Top achievements
Rank 1
Share this question
or