This is a migrated thread and some comments may be shown as answers.

Highlight text on Filtering

2 Answers 42 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 02 Sep 2010, 01:22 AM
Is it possible to highlight the text when filtering like in you asp.net controls?  I guess maybe I could use the highlightingTextBlock that Jeff Wilcox made inside the telerik dropdown? http://www.jeff.wilcox.name/2009/08/sl3-highlighting-text-block/

2 Answers, 1 is accepted

Sort by
0
Accepted
Valeri Hristov
Telerik team
answered on 02 Sep 2010, 12:11 PM
Hi Dan,

You could use the HighlightingTextBlock control, your XAML should look like something like this:
<telerik:RadComboBox x:Name="cb1" ItemsSource="..."
  telerik:TextSearch.TextPath="Name">
 <telerik:RadComboBox.ItemTemplate>
  <DataTemplate>
   <local:HighlightingTextBlock Text="{Binding Name}" HighlightText="{Binding Text, ElementName=cb1}" />
  </DataTemplate>
 </telerik:RadComboBox.ItemTemplate>
</telerik:RadComboBox>

Kind regards,
Valeri Hristov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
danparker276
Top achievements
Rank 2
answered on 02 Sep 2010, 04:53 PM
Yeah, that's exactly what I did and it works great.
Tags
ComboBox
Asked by
danparker276
Top achievements
Rank 2
Answers by
Valeri Hristov
Telerik team
danparker276
Top achievements
Rank 2
Share this question
or