Hello!
We have the following problem:
We want to have an editable combobox which shows items with an ItemTemplate. But when we use the TextSearch.TextPath Property only the choosen path will be displayed in the selection box. But we want to display the items as defined in the itemtemplate with further support of searching with isEditable=true.
Thanks for your help.
We have the following problem:
We want to have an editable combobox which shows items with an ItemTemplate. But when we use the TextSearch.TextPath Property only the choosen path will be displayed in the selection box. But we want to display the items as defined in the itemtemplate with further support of searching with isEditable=true.
Thanks for your help.
<
UserControl.Resources
>
<
DataTemplate
x:Key
=
"CustomItemTemplate"
>
<
StackPanel
Margin
=
"0 3"
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding Surname}"
/>
<
TextBlock
Text
=
"{Binding Firstname}"
Margin
=
"4,0,0,0"
/>
</
StackPanel
>
</
DataTemplate
>
</
UserControl.Resources
>
<
telerikInput:RadComboBox
Grid.Column
=
"1"
Grid.Row
=
"0"
x:Name
=
"cbxHead"
Margin
=
"0,1"
ItemsSource
=
"{Binding Path=EmpColl}"
SelectedItem
=
"{Binding Path=Head, Mode=TwoWay, ValidatesOnNotifyDataErrors=True}"
TextSearchMode
=
"StartsWith"
IsFilteringEnabled
=
"True"
IsEditable
=
"False"
IsReadOnly
=
"True"
ItemTemplate
=
"{StaticResource CustomItemTemplate}"
StaysOpenOnEdit
=
"True"
telerik:TextSearch.TextPath
=
"Surname"
>
</
telerikInput:RadComboBox
>