I am trying to enable autocomplete for a combobox and I have 2 columns of data. I use a template for the columns display as show below. The problem is that the autocomplete is looking at the second column for the autocomplete but I need it on column 1. It is also populating the data from column 2 when choosing an option, and I need column 1 value.
I cant seem to figure out how to force the "NAME" column for this.
<telerik:RadComboBox HighlightTemplatedItems="true" DropDownWidth="300" ID="cboLeadComp"
runat="server" DataSourceID="SqlDataSource3" DataTextField="NAME" DataValueField="ORGANIZATION_ID"
Width="260px" CollapseDelay="100" Font-Size="Small" MarkFirstMatch="True" TabIndex="6">
<ItemTemplate>
<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
<tr style="height: 5px">
<td style="width: 50px; height: 5px" nowrap>
<%#DataBinder.Eval(Container.DataItem, "Name")%>
</td>
<td nowrap style="height: 5px">
<%#DataBinder.Eval(Container.DataItem, "Description")%>
</td>
</tr>
</table>
</ItemTemplate>
<HeaderTemplate>
<table style="width: 100%">
<tr>
<td style="width: 50px;height:5px;font-weight:bold">
Name</td>
<td style="height: 5px;font-weight:bold">
Description</td>
</tr>
</table>
</HeaderTemplate>
</telerik:RadComboBox>
I cant seem to figure out how to force the "NAME" column for this.
<telerik:RadComboBox HighlightTemplatedItems="true" DropDownWidth="300" ID="cboLeadComp"
runat="server" DataSourceID="SqlDataSource3" DataTextField="NAME" DataValueField="ORGANIZATION_ID"
Width="260px" CollapseDelay="100" Font-Size="Small" MarkFirstMatch="True" TabIndex="6">
<ItemTemplate>
<table style="width: 100%" border="0" cellpadding="0" cellspacing="0">
<tr style="height: 5px">
<td style="width: 50px; height: 5px" nowrap>
<%#DataBinder.Eval(Container.DataItem, "Name")%>
</td>
<td nowrap style="height: 5px">
<%#DataBinder.Eval(Container.DataItem, "Description")%>
</td>
</tr>
</table>
</ItemTemplate>
<HeaderTemplate>
<table style="width: 100%">
<tr>
<td style="width: 50px;height:5px;font-weight:bold">
Name</td>
<td style="height: 5px;font-weight:bold">
Description</td>
</tr>
</table>
</HeaderTemplate>
</telerik:RadComboBox>