loading too long in chrome

4 posts, 0 answers
  1. Anders
    Anders avatar
    11 posts
    Member since:
    Nov 2010

    Posted 16 Nov 2010 Link to this post

    Dear all 

    I have found a issue that  is no faster  when open a Radwindow in Chrome or Safari (the newest version)
    but it's ok in IE.

    the loading panel was visible too long.

    Can anyone help me in that issue ? 

    Best Regards
  2. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 17 Nov 2010 Link to this post

    Hi Anders,

    The reason for the problem is that WebKit-based browsers are loading the resources slower (the CSS and the images are coming from the resource axd file) than the other browsers.
    In this case I could suggest 2 approaches. The first one is to manually insert the CSS for the Window from the resources - check the RadCodeBlock in the sample below. Note that you must make sure that you are using the corresponding skin.
    Approach #2 is to use a "dummy" RadWindow that has VisibleOnPageLoad=true, but will be shown outside the viewport. You can close the window in the OnClientShow event handler.

    <head runat="server">
        <title></title>
        <%--
        Approach#1 - use the following link references - make sure that the skin's name matches (in the code below we are using the Default skin
     
        <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadWindow), "Telerik.Web.UI.Skins.Window.css") %>'
                rel="stylesheet" type="text/css" />
            <link href='<%= Page.ClientScript.GetWebResourceUrl(typeof(RadWindow), "Telerik.Web.UI.Skins.Default.Window.Default.css") %>'
                rel="stylesheet" type="text/css" />
        </telerik:RadCodeBlock>--%>
    </head>
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="Sc1" runat="server">
        </asp:ScriptManager>
        <telerik:RadWindowManager ID="radWindowManager" runat="server">
            <Windows>
            <%-- Approach #2 - use a "dummy" RadWindow that will be shown outside the viewport and closed after that in OnClientShow --%>
                <telerik:RadWindow ID="dummyWin" runat="server" OnClientShow="OnClientShow" VisibleOnPageLoad="true"
                    Top="-10000" Left="-10000">
                </telerik:RadWindow>
            </Windows>
        </telerik:RadWindowManager>
        <button runat="server" onclick="openWin();">
            test</button>
        <script type="text/javascript">
            function openWin() {
                radopen("about:blank", "RadWindow1");
            }
     
            function OnClientShow(sender, args) {
                sender.close();
            }
         
        </script>


    I hope this helps.

    Sincerely yours,
    Georgi Tunev
    the Telerik team
    Browse the vast support resources we have to jumpstart 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. Anders
    Anders avatar
    11 posts
    Member since:
    Nov 2010

    Posted 21 Nov 2010 Link to this post

    Hi Georgi :

    Thanks the reply and the post code.

    I have copied the whole code you post to my page
    but I think is still running slower with the browser except IE.

    and I also copy the css file to my page from folder '\... Q3 2010\Skins\Default\Window'.
  4. Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 25 Nov 2010 Link to this post

    Hi Anders,

    I see that my previous reply is not complete enough so I just wanted to provide more info on the subject. It is not that the WebKit's browser loads the images slower, they simply load everything else (scripts / elements / texts) much faster that the images which leads to the behavior that you experience. We are currently investigating possible approaches for this case, but we'll need more time for research.


    Sincerely yours,
    Georgi Tunev
    the Telerik team
    Browse the vast support resources we have to jumpstart 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