I have a multi-column combobox that the user wants an ID to show in the box but be able to search on a name using the MarkFirstMatch. What I have noticed is the MarkFirstMatch works on the item.text when the databound event fires. If I set the ID to the text property then you can't search by name. If I set the name to the text property you can search by name but it will not display the ID. Is there anyway to get around this. I have tried the OnItemsRequested but the users don't like the list to get shortned, they just want the hi-light to go to the rows as they type.
ItemDatabound event
telerik:RadComboBox ID="radCBTaxonomy" runat="server" AllowCustomText="true" HighlightTemplatedItems="true"
DropDownWidth="350px" Width="125px" MaxHeight="200px" OnClientKeyPressing="ChangeToUpperCase" MarkFirstMatch="true"
OnClientLoad="ChangeToUpperCase" AutoPostBack="true">
<
HeaderTemplate
>
<
table
style
=
"width: 300px; text-align: left; font-size: 8pt"
>
<
tr
>
<
td
style
=
"width: 100px;"
>
Taxonomy Code
</
td
>
<
td
style
=
"width: 200px;"
>
Name
</
td
>
</
tr
>
</
table
>
</
HeaderTemplate
>
<
ItemTemplate
>
<
table
style
=
"width: 300px; text-align: left; font-size: 8pt"
>
<
tr
>
<
td
style
=
"width: 100px; text-transform: uppercase;"
>
<%#DataBinder.Eval(Container.DataItem, "Taxonomy")%>
</
td
>
<
td
style
=
"width: 200px; text-transform: uppercase;"
>
<%# DataBinder.Eval(Container.DataItem, "ProvName")%>
</
td
>
</
tr
>
</
table
>
</
ItemTemplate
>
</
telerik:RadComboBox
>
ItemDatabound event
e.Item.Text = (
DirectCast
(e.Item.DataItem, DataRowView))(
"ProvName"
).ToString.ToUpper()
e.Item.Value = (
DirectCast
(e.Item.DataItem, DataRowView))(
"Taxonomy"
).ToString.ToUpper()