I have a combo box.
Almost 500 rows is bind to the combo at run time.
and bind using
At run time, I have to wait for a long time to load the drop down after clicking the arrow.
Is there any other methods to make it fast.
Please help.
Almost 500 rows is bind to the combo at run time.
<telerik:RadComboBox ID="RadComboBox_SchoolName_Search" runat="server" Skin="Default" |
Width="575px" Font-Names="Arial" HighlightTemplatedItems="true" MarkFirstMatch="true" |
AutoPostBack="true" EnableTextSelection="true" EnableItemCaching="true"> |
<HeaderTemplate> |
<table style="text-align: left; width: 575px"> |
<tr> |
<td style="width: 400px; font-weight: bold;"> |
School Name |
</td> |
<td style="width: 175px; font-weight: bold;"> |
State |
</td> |
</tr> |
</table> |
</HeaderTemplate> |
<ItemTemplate> |
<table style="width: 630px; text-align: left"> |
<tr> |
<td style="width: 430px;"> |
<%# DataBinder.Eval(Container.DataItem, "SchoolName")%> |
</td> |
<td style="width: 200px;"> |
<%# DataBinder.Eval(Container.DataItem, "State")%> |
</td> |
</tr> |
</table> |
</ItemTemplate> |
<CollapseAnimation Duration="200" Type="None" /> |
</telerik:RadComboBox> |
private void Populate_RadComboBox_SchoolName_Search() |
{ |
DataTable _SchoolwithState = new DataTable(); |
_SchoolwithState.Clear(); |
RadComboBox_SchoolName_Search.Items.Clear(); |
_SchoolwithState = objLookup.Populate_SchoolwithStatename(); |
if (_SchoolwithState.Rows.Count > 0) |
{ |
if (_SchoolwithState.Rows.Count > 15) |
{ |
RadComboBox_SchoolName_Search.Height = 410; |
} |
RadComboBox_SchoolName_Search.DataSource = _SchoolwithState; |
RadComboBox_SchoolName_Search.DataTextField = "SchoolName"; |
RadComboBox_SchoolName_Search.DataValueField = "SchoolID"; |
RadComboBox_SchoolName_Search.DataBind(); |
} |
RadComboBox_SchoolName_Search.Items.Insert(0, new RadComboBoxItem("---Search Students by School Name---")); |
} |
Is there any other methods to make it fast.
Please help.