Simply putting combobox on my page increases render time by FIVE seconds in IE6. What's the dealio?

8 posts, 0 answers
  1. JeremyP
    JeremyP avatar
    17 posts
    Member since:
    Sep 2008

    Posted 24 Oct 2008 Link to this post

    I have a combobox on my form with load on demand.

    Simply putting that combo box on my page has turned a page that was pretty instantaneous to a page that takes five seconds to load.

    If firefox it works like a champ.  In IE7, I get the five second delay.

    Do you guys have an IE7 fix for this issue?

    EDIT:  I meant IE7.  I can't change the post title...
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 27 Oct 2008 Link to this post

    Hello Jeremy,

    You can check this help article which explains how to optimize the combobox speed. In case this doesn't help, could you please provide us with a live url or a sample project so we can test it locally? You should open a support ticket to be able to attach files. Thanks

    Regards,
    Yana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. JeremyP
    JeremyP avatar
    17 posts
    Member since:
    Sep 2008

    Posted 27 Oct 2008 Link to this post

    I don't have time for all that.

    I already had load on demand for this control and it hangs in IE7.

    Here's the code:
    aspx:

     

     

    <%  
     
    @ Page Language="C#" AutoEventWireup="true" CodeFile="testpage2.aspx.cs" Inherits="testpage2" %>   
       
     
    <%  
     
     
     
    @ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>   
       
     
     
     
       
    <!  
     
       
     
    DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">   
       
     
    < 
     
       
     
     
     
    html xmlns="http://www.w3.org/1999/xhtml">   
       
     
    < 
     
       
     
     
     
    head id="Head1" runat="server">   
       
     
     
     
       
     
    <title></title>   
       
     
    </ 
     
       
     
     
     
    head>   
       
     
    < 
     
       
     
     
     
    body>   
       
     
     
     
       
     
       
     
    <form id="form1" runat="server">   
       
     
     
     
       
     
    <asp:ScriptManager ID="ScriptManager1" runat="server">   
       
     
     
     
       
     
    </asp:ScriptManager>   
       
     
     
     
       
     
    <div>   
       
     
     
     
       
     
    <telerik:RadComboBox ID="BusinessComboBox"   
       
     
       
     
     
     
    AllowCustomText="true" ShowToggleImage="true" ShowMoreResultsBox="false"   
       
     
     
     
       
     
    EnableLoadOnDemand="true" MarkFirstMatch="false" runat="server"   
       
     
       
     
     
     
    EnableVirtualScrolling="false"   
       
     
       
     
     
     
    onitemsrequested="BusinessComboBox_ItemsRequested" Skin="WebBlue">   
       
     
     
     
       
     
    <CollapseAnimation Duration="200" Type="OutQuint" />   
       
     
     
     
       
     
    </telerik:RadComboBox>   
       
     
    </ 
     
       
     
     
     
    div>   
       
     
     
     
       
     
    </form>   
       
     
    </ 
     
       
     
     
     
    body>   
       
     
    </ 
     
       
     
     
     
    html>  
     
     

    code behind:

     

     
     
    using  
     
       
     
    System;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Collections.Generic;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Linq;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Web;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Web.UI;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Web.UI.WebControls;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    pii.data;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    pii.connections;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    Telerik.Web.UI;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Drawing;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Data.SqlClient;   
       
     
       
     
     
     
       
       
     
    using  
     
       
     
     
     
    System.Data;   
       
     
       
     
     
     
       
       
     
    public  
     
       
     
     
     
    partial class testpage2 : System.Web.UI.Page   
       
     
       
     
       
     
     
     
       
       
     
    {  
     
       
     
     
     
    protected void Page_Load(object sender, EventArgs e)   
       
     
    {  
     
    }  
     
       
     
     
     
    protected void BusinessComboBox_ItemsRequested(object o, Telerik.Web.UI.RadComboBoxItemsRequestedEventArgs e)   
       
     
    {  
     
       
     
     
     
    string sql = "SELECT BizName FROM dbo.Business WHERE BizName LIKE '" + e.Text + "%'";   
       
     
       
     
     
     
    piiConnection strcon = new piiConnection();   
       
     
       
     
     
     
    SqlDataAdapter adapter = new SqlDataAdapter(sql, strcon.getConnection());   
       
     
       
     
     
     
    DataTable data = new DataTable();   
       
     
    adapter.Fill(data);  
     
       
     
     
     
    try   
       
     
       
     
       
     
     
     
       
       
     
    {  
     
       
     
     
     
    int itemsPerRequest = 4;   
       
     
       
     
     
     
    int itemOffset = e.NumberOfItems;   
       
     
       
     
     
     
    int endOffset = itemOffset + itemsPerRequest;   
       
     
       
     
     
     
    if (endOffset > data.Rows.Count)   
       
     
    {  
     
    endOffset = data.Rows.Count;  
     
    }  
     
       
     
     
     
    if (endOffset == data.Rows.Count)   
       
     
    {  
     
    e.EndOfItems =   
     
     
     
    true;   
       
     
    }  
     
       
     
     
     
    else   
       
     
       
     
       
     
     
     
       
       
     
    {  
     
    e.EndOfItems =   
     
     
     
    false;   
       
     
    }  
     
       
     
     
     
    for (int i = itemOffset; i < endOffset; i++)   
       
     
    {  
     
    BusinessComboBox.Items.Add(  
     
     
     
    new RadComboBoxItem(data.Rows[i]["BizName"].ToString(), data.Rows[i]["BizName"].ToString()));   
       
     
    }  
     
       
     
     
     
    //if (data.Rows.Count > 0)   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    //{   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    // e.Message = String.Format("Items <b>1</b>-<b>{0}</b> out of <b>{1}</b>", endOffset.ToString(), data.Rows.Count.ToString());   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    //}   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    //else   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    //{   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    // e.Message = "No matches";   
       
     
       
     
       
     
     
     
       
       
     
       
     
     
     
    //}   
       
     
       
     
       
     
     
     
       
       
     
    }  
     
       
     
     
     
    catch   
       
     
       
     
       
     
     
     
       
       
     
    {  
     
    e.Message =   
     
     
     
    "No matches";   
       
     
    }  
     
    }  
     
    }  
     
     
     

     

     

     

     

     

     

     

     

     

  5. JeremyP
    JeremyP avatar
    17 posts
    Member since:
    Sep 2008

    Posted 27 Oct 2008 Link to this post

    Nevermind. 

    I gave up on the combobox and went with Microsoft's AutoCompleteExtender attached to a TextBox.

    I can't have a page take seconds to load due to one control in what is still the most popular browser used.

    Sorry.
  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 28 Oct 2008 Link to this post

    Hi Jeremy,

    We tested the provided code with the latest version of RadComboBox and it works without delay. We are sorry that you decided not to use it.

    Best wishes,
    Yana
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  7. JeremyP
    JeremyP avatar
    17 posts
    Member since:
    Sep 2008

    Posted 28 Oct 2008 Link to this post

    After reading this, I thought maybe it may be some sort of setting that I have in IE7. 

    I changed my settings to the default settings and went to http://demos.telerik.com/ASPNET/Prometheus/ComboBox/Examples/Default/DefaultCS.aspx

    At the bottom of the browser window, the browser was stuck on '9 items loading' for a long, long time.

    In Firefox it works great.  In IE it does not.

    So I went to manage add-ons on IE to see what was up.  When I disabled all the add-ons, you're right, the combo box shows up immediately.

    But, when I enabled this:
    Norton Confidential from Symantec Corporation, Browser Helper Object, File: coIEPlg.dll
    the combox had the delay.  Every machine at my work has Norton installed on it.

    Hopefully this will help people in the future, or maybe even you guys in seeing what the problem may be with that .dll add-on and the combo box.



  8. Serrin
    Serrin avatar
    286 posts
    Member since:
    Sep 2008

    Posted 28 Oct 2008 Link to this post

    In my experience Symantec and Norton both kinda suck and I avoid using them when at all possible.  Hangups like this are more common than you'd think when using their products, and they show up in the strangest places.
  9. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 29 Oct 2008 Link to this post

    Hello JeremyP,

    This seems to be a known problem with Norton Internet Security. Can you try upgrading to the latest NIC version (2009) and let us know if this speed things up?


    All the best,
    Veselin Vasilev
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017