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

loading too long in chrome

3 Answers 48 Views
Window
This is a migrated thread and some comments may be shown as answers.
Anders
Top achievements
Rank 1
Anders asked on 16 Nov 2010, 10:21 AM
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

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 17 Nov 2010, 02:00 PM
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.
0
Anders
Top achievements
Rank 1
answered on 22 Nov 2010, 03:27 AM
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'.
0
Georgi Tunev
Telerik team
answered on 25 Nov 2010, 09:01 AM
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.
Tags
Window
Asked by
Anders
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Anders
Top achievements
Rank 1
Share this question
or