Hi,
I have a problem when setting my DisplayMemberPath:
In the code above, all is working fine, except that when i have selected an item, the text displayed is the one in my SearchPath property, and not the one in my Name property.
What did i do wrong?
I have a problem when setting my DisplayMemberPath:
<
t:RadAutoCompleteBox
x:Name
=
"AutoCompleteBox"
Grid.Row
=
"2"
Grid.ColumnSpan
=
"3"
ItemsSource
=
"{Binding Suggests}"
SearchText
=
"{Binding TextSearch, Mode=TwoWay}"
SelectedItem
=
"{Binding SelectedSuggest, Mode=TwoWay}"
TextSearchPath
=
"SearchPath"
DisplayMemberPath
=
"Name"
>
<
t:RadAutoCompleteBox.DropDownItemTemplate
>
<
DataTemplate
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
Text
=
"{Binding Name}"
/>
<
TextBlock
Text
=
" - "
/>
<
TextBlock
Text
=
"{Binding Code}"
/>
</
StackPanel
>
</
DataTemplate
>
</
t:RadAutoCompleteBox.DropDownItemTemplate
>
</
t:RadAutoCompleteBox
>
In the code above, all is working fine, except that when i have selected an item, the text displayed is the one in my SearchPath property, and not the one in my Name property.
What did i do wrong?