Highlight text on Filtering

3 posts, 1 answers
  1. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 01 Sep 2010 Link to this post

    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. Answer
    Valeri Hristov
    Admin
    Valeri Hristov avatar
    2252 posts

    Posted 02 Sep 2010 Link to this post

    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
  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 02 Sep 2010 Link to this post

    Yeah, that's exactly what I did and it works great.
Back to Top