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

loading issue on selectedindexchanged

1 Answer 116 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Bill
Top achievements
Rank 1
Bill asked on 15 Apr 2013, 05:58 PM
We are having some issues with a drop down list when it is populated with a large amount of items (1800).

We have the drop down list containing vendors sitting on a master page and a couple of telerik RadHtmlCharts on a child page that show the sales for the selected vendor. On first load there is a default selected vendor and the graphs display that vendor's sales. The user can then change the vendor in the drop down list and the graphs will change to show that vendor's sales. Pretty basic stuff.

When the page is first loaded it renders quickly and without issue, but if the user changes the selected vendor the page takes a good 15 seconds to load. It loads partially, but then takes extra time to load the charts. The browser locks up while it's doing it. In some cases it will crash the browser.

We have tried replacing the drop down list with a rad combo box and the issue remains. If we change the rad drop down list to the standard ASP.NET drop down list the issue goes away.
 
The issue only seem to occur in Chrome. In Firefox the page loads quickly.

Attached is the Timeline from Chrome dev tools. I'm wondering if this is an issue with Layout and Recalculate Style? This happens a lot when the user changes the selected vendor, but you don't see it happening when the page first loads.

The data for the drop down list is loaded during Page_Load like so:

if (!IsPostBack)
 {
 
rddlVendors.Visible = false;
 
            DataTable dtVendors = dbMain.get_VendorList_by_AccountID_ForMenu((int)Session["AccountID"]);
 
            if (dtVendors.Rows.Count > 0)
            {
 
                if (dtVendors.Rows.Count > 1)
                {
                   rddlVendors.Visible = true;
 
                    
                    rddlVendors.DataSource = dtVendors;
                    rddlVendors.DataTextField = "name";
                    rddlVendors.DataValueField = "ID";
 
                    rddlVendors.DataBind();
 
                    rddlVendors.SelectedValue = Session["VendorID"].ToString();
                }
            }
 
}

Let me know if you require any more information.
Thanks


1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 18 Apr 2013, 01:19 PM
Hello Bill,

The experienced issue seems to be a strange one, and it is possibly related with the version 26 of Chrome, which Google recently released. Please refer to this forum thread for more information on the matter.


All the best,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
DropDownList
Asked by
Bill
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or