I want to search one value of my item in my itemtemplate, but I display a different one when selected. I'm not sure this is possible.
It would be like the demo 'Using ItemTemplate in Editable ComboBox', but you could search phone or zip along with the Name. Then when selected, only the name would show up in the combo box.
The SelectedValuePath doesn't seem to work when I have the telerik:TextSearch.TextPath set.
It would be like the demo 'Using ItemTemplate in Editable ComboBox', but you could search phone or zip along with the Name. Then when selected, only the name would show up in the combo box.
The SelectedValuePath doesn't seem to work when I have the telerik:TextSearch.TextPath set.
<
telerik:RadComboBox
Name
=
"rcbBillingTkpr"
DropDownClosed
=
"rcbBillingTkpr_DropDownClosed"
IsReadOnly
=
"False"
TextSearchMode
=
"Contains"
telerik:TextSearch.TextPath
=
"Name"
SelectedValuePath
=
"Tkpr"
ClearSelectionButtonVisibility
=
"Visible"
ClearSelectionButtonContent
=
"Clear"
Width
=
"80"
IsEditable
=
"True"
IsFilteringEnabled
=
"True"
>
<
telerik:RadComboBox.ItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
local:HighlightingTextBlock
Background
=
"Beige"
HighlightBrush
=
"Blue"
Margin
=
"0 0 5 0"
HighlightFontWeight
=
"Bold"
HighlightText
=
"{Binding Text, ElementName=rcbBillingTkpr}"
Text
=
"{Binding Name}"
/>
<
local:HighlightingTextBlock
FontWeight
=
"Bold"
Background
=
"Beige"
HighlightBrush
=
"Blue"
HighlightFontWeight
=
"Bold"
HighlightText
=
"{Binding Text, ElementName=rcbBillingTkpr}"
Text
=
"{Binding Tkpr}"
/>
</
StackPanel
>
</
DataTemplate
>
</
telerik:RadComboBox.ItemTemplate
>
</
telerik:RadComboBox
>