I want to users to locate first name and last name, but telerik:TextSearch.TextPath can only set by one column. what can I do? Thanks.
Here is the code:
<telerik:RadComboBox x:Name="cbWorkers" ItemsSource="{Binding Source={StaticResource ViewModel},Path=DataModel.Workers}"
SelectedValuePath="idWorkerKey" Width="200"
telerik:TextSearch.TextPath="firstName"
IsEditable="True" SelectedIndex="0">
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding firstName}"></Run>
<Run>,</Run>
<Run Text="{Binding lastName}"></Run>
</TextBlock>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
<telerik:RadComboBox.SelectionBoxTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding firstName}"></Run>
<Run>,</Run>
<Run Text="{Binding lastName}"></Run>
</TextBlock>
</DataTemplate>
</telerik:RadComboBox.SelectionBoxTemplate>
</telerik:RadComboBox>
Here is the code:
<telerik:RadComboBox x:Name="cbWorkers" ItemsSource="{Binding Source={StaticResource ViewModel},Path=DataModel.Workers}"
SelectedValuePath="idWorkerKey" Width="200"
telerik:TextSearch.TextPath="firstName"
IsEditable="True" SelectedIndex="0">
<telerik:RadComboBox.ItemTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding firstName}"></Run>
<Run>,</Run>
<Run Text="{Binding lastName}"></Run>
</TextBlock>
</DataTemplate>
</telerik:RadComboBox.ItemTemplate>
<telerik:RadComboBox.SelectionBoxTemplate>
<DataTemplate>
<TextBlock>
<Run Text="{Binding firstName}"></Run>
<Run>,</Run>
<Run Text="{Binding lastName}"></Run>
</TextBlock>
</DataTemplate>
</telerik:RadComboBox.SelectionBoxTemplate>
</telerik:RadComboBox>