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

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

9 Answers 105 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
JeremyP
Top achievements
Rank 1
JeremyP asked on 24 Oct 2008, 09:22 PM
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...

9 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 27 Oct 2008, 11:45 AM
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.
-1
JeremyP
Top achievements
Rank 1
answered on 27 Oct 2008, 02:31 PM
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";   
   
 
}  
 
}  
 
}  
 
 
 

 

 

 

 

 

 

 

 

 

0
JeremyP
Top achievements
Rank 1
answered on 27 Oct 2008, 08:15 PM
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.
0
Yana
Telerik team
answered on 28 Oct 2008, 08:28 AM
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.
0
JeremyP
Top achievements
Rank 1
answered on 28 Oct 2008, 02:09 PM
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.



0
Serrin
Top achievements
Rank 1
answered on 28 Oct 2008, 06:06 PM
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.
0
Veselin Vasilev
Telerik team
answered on 29 Oct 2008, 01:06 PM
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.
0
Patricia Onorato
Top achievements
Rank 1
answered on 02 Dec 2019, 01:04 PM

You need to download norton antivirus. Norton antivirus application is to protect the system from different types of malware and viruses. You cannot secure your system without downloading the Norton antivirus. In case you do not have an account on Norton, then try to create an account. You will need the activation key so that you can successfully activate your Norton product on the system. 

Visit: <a href="https://norton.setupactivatepro.com">Norton.com setup product key</a>

0
Alan
Top achievements
Rank 1
Iron
answered on 01 Mar 2023, 01:50 PM | edited on 01 Mar 2023, 01:52 PM
Thanks for that my dear friends!
Tags
ComboBox
Asked by
JeremyP
Top achievements
Rank 1
Answers by
Yana
Telerik team
JeremyP
Top achievements
Rank 1
Serrin
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Patricia Onorato
Top achievements
Rank 1
Alan
Top achievements
Rank 1
Iron
Share this question
or