I have a RadCombo and I am parsing a list of sites {SiteName, SiteUID} in javascript and adding them to the radCombo..
The comboSiteList Object contains a list of Sites with a count of 300... The javascript function seems to be running very slow.. Is there something below I can do to speed things up?
The comboSiteList Object contains a list of Sites with a count of 300... The javascript function seems to be running very slow.. Is there something below I can do to speed things up?
var
siteCombo = $find(
"<%= RadComboBoxTransferSites.ClientID %>"
);
var
comboSiteList = transferCountsObject.SiteLists;
for
(
var
i = 0; i < comboSiteList.length; i++) {
var
comboItem =
new
Telerik.Web.UI.RadComboBoxItem();
comboItem.set_text(comboSiteList[i].SiteName.toString());
comboItem.set_value(comboSiteList[i].SiteUID.toString());
siteCombo.trackChanges();
siteCombo.get_items().add(comboItem);
}
siteCombo.commitChanges();