Maximize from Javascript or InitialBehaviors="Maximize" does NOT work In IE 9

6 posts, 1 answers
  1. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 01 May 2011 Link to this post

    Dear Telerik,

    We're facing a problem in Maximizing a RadWindow on Open from Javascript or with InitialBehaviors="Maximize"
    from ASPX.

    To reproduce the problem we created a small Default.aspx page like this:

    <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Default" %>
      
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
    <head runat="server">
        <title></title>
        <telerik:RadStyleSheetManager id="RadStyleSheetManager1" runat="server" />
    </head>
    <body>
        <form id="form1" runat="server">
            <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
            </telerik:RadScriptManager>
            <script type="text/javascript">
                function showWindow() {
                    var proWindow = $find('<%= xW.ClientID %>');
                    proWindow.set_navigateUrl('http://www.telerik.com');
                    proWindow.set_title('My Window Title');
                    window.setTimeout(function () {
                        proWindow.show();
                        proWindow.setActive(true);
                    }, 0);
                    return false;
                }
            </script>
            <div>
                <telerik:RadWindowManager ID="wM"
                    runat="server"
                    Overlay="true"
                    ReloadOnShow="false"
                    VisibleStatusbar="false"
                    VisibleOnPageLoad="false"
                    ShowContentDuringLoad="false" >
                    <Windows>
                        <telerik:RadWindow ID="xW" runat="server" 
                            VisibleTitlebar="true" EnableViewState="false" Behaviors="Move,Close,Maximize" ReloadOnShow="true" Modal="true" InitialBehaviors="Maximize" >
                        </telerik:RadWindow>
                    </Windows>
                </telerik:RadWindowManager>
                <asp:LinkButton ID="btnShow" Text="Show Maximized Window" runat="server" OnClientClick="return showWindow();" /> 
            </div>
        </form>
    </body>
    </html>

    When you open this page in IE9 and click on the Show Maximized Window Link, you see a page that is not maximized to the full height. But when you open it in Chrome, you see it Maximized.

    We're using the latest published version as of today.

    Attached please find the 2 Screen Shots under IE9 and Under Chrome.

    Thanks, as Always

    Salah A. Malaeb
    TeknoBuild
  2. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 02 May 2011 Link to this post

    Hello Salah,

    Thank you for bringing this problem to our attention - your points have been updated. I logged it in our database and you can follow its progress here.
    As a temporary workaround I would suggest either to set  ShowContentDuringLoad=true, or as an alternative - to manually call maximize after the content page has been loaded.


    All the best,
    Georgi Tunev
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. loowool
    loowool avatar
    60 posts
    Member since:
    Sep 2006

    Posted 02 May 2011 Link to this post

    Thanks Georgi,
    Your suggested workaround to set ShowContentDuringLoad=true works just fine.
    Reaards,
    Salah
  5. Farouk
    Farouk avatar
    24 posts
    Member since:
    Jun 2012

    Posted 12 May 2011 Link to this post

    hey..

    is this bug really fixed?
    I'm using the newest release: 2011.1.413.35 and the RadWindow open's still like in the screenshots from "lowool".

    And the workaround is no solution. I need the loading-panel for the end-customer.

    thx,
    basti
  6. Jody Harbour
    Jody Harbour avatar
    17 posts
    Member since:
    Feb 2009

    Posted 13 May 2011 Link to this post

    I just purchased the upgrade to mainly to fix the IE9 and radopen issues. to find that I cannot use the maximize() client size or it will look like the above picture. this issue is not resolved in  2011.1 413.
  7. Svetlina Anati
    Admin
    Svetlina Anati avatar
    2795 posts

    Posted 13 May 2011 Link to this post

    Hello guys,

     I can confirm that this bug is already fixed on 03 May. This means that the fix will be available in later builds and the one you mention is from April. This being said, please upgrade to the latest internal build or wait until the upcoming SP which is scheduled for next week and once you upgrade to it, the problem should disappear.

    Greetings,
    Svetlina
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

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