Hi
im using a RadComboBox with ItemTemplate like below:
<telerik:RadComboBox ID="RadComboBoxPart" runat="server" Width="251px"
DropDownWidth="540" DataSourceID="sqlParts" EmptyMessage="Choose Your Part ..." HighlightTemplatedItems="true"
MarkFirstMatch="true" EnableLoadOnDemand="true" Filter="Contains"
AutoCompleteSeparator="|"
Culture="fa-IR" LoadingMessage="Please Wait!" RenderMode="Mobile"
Sort="Ascending" OnItemDataBound="RadVehicle_ItemDataBound" OnItemsRequested="Radpart_ItemsRequested">
<HeaderTemplate>
<table style="width: 360px;">
<tr>
<td style="width: 280px;">PartName </td>
<td style="width: 80px;">PartCode </td>
</tr>
</table>
</HeaderTemplate>
<ItemTemplate>
<table style="width:360px">
<tr>
<td style="width: 280px;">
<asp:Label ID="Label10" runat="server" Text='<%# Bind("PartName") %>'></asp:Label>
</td>
<td style="width: 80px;">
<asp:Label ID="Label11" runat="server" Text='<%# Bind("PartCode") %>'></asp:Label>
</td>
</tr>
</table>
</ItemTemplate>
</telerik:RadComboBox>
and for DataSource i'v got this:
<asp:SqlDataSource ID="sqlParts" runat="server"
ConnectionString="<%$ ConnectionStrings:Gsgdb_tempConnectionString %>"
SelectCommand="select * from dbo.ActiveParts ></asp:SqlDataSource>
and in Code Behind for ItemDataBound Event i'v got this:
protected void RadComboBoxPart_ItemDataBound(object sender, Telerik.Web.UI.RadComboBoxItemEventArgs e)
{
e.Item.Text = ((DataRowView)e.Item.DataItem)["PartName"].ToString();
e.Item.Value = ((DataRowView)e.Item.DataItem)["ID"].ToString();
}
its work fine for me !
but it's taking too long to load in clintside
what am i doing wrong? any help would be appreciated.