ComboBox Virtualization with Highlighting Text

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

    Posted 10 Jun 2011 Link to this post

    I use a highlighting textbox control in my combo box DataTemplate that binds the highlighttext to the text of the comboBox which maybe is the problem.  When I scroll down my combo box and it's virtualized, I get the correct non-highlighted regular textblock, but it will keep repeating the same highlighted textblocks.  Basically, textbox TimeCodeName will be ok, but myapp:HighlightingTextBlock will be a repeat of the top 10.

    I guess a few questions, is highlighting the matched text on the combo box going to be an option soon?  Is there anyway to make this work with myapp:HTB?  Is there any progress with filtering a virutalized combo box?

    <telerik:RadComboBox.ItemTemplate>
        <DataTemplate>
            <StackPanel Orientation="Horizontal" Width="300">
                <TextBlock   Text="{Binding TimeCodeId}" Margin="2,0,8,0"
                     Width="100"
              VerticalAlignment="Center" FontSize="16" />
                <TextBlock   Text="{Binding TimeCodeName}"   
              />
                <myapp:HighlightingTextBlock    HighlightBrush="Blue" 
                    HighlightFontWeight="Bold"  HighlightText="{Binding Text, ElementName=rcPerCode}" 
                    Text="{Binding TimeCodeName}"  />
            </StackPanel>
        </DataTemplate>
    </telerik:RadComboBox.ItemTemplate>
  2. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 10 Jun 2011 Link to this post

    I was thinking that since Silverlight 5 combo boxes support text searching, are you waiting to put the new features in Silverlight 5 instead?
  3. DevCraft banner
  4. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 12 Jun 2011 Link to this post

    Sorry, the Heuer highlight textbox doesn't work for virtualized things like listboxes also.

    I have 100,000 things to search for and I don't want to popup a window and select from a gridview.
    I think I'm just going to have a textbox and make a listbox visible when it's focused.  Then use linq to filter when the textbox is changed clearing and adding new items, so I can create highlighted text.
  5. Answer
    Pana
    Admin
    Pana avatar
    748 posts

    Posted 16 Jun 2011 Link to this post

    Hi,

    We are not sure if we are going to implement such feature. We will see what Silverlight 5 to offer of course butt currently we do not have plans for it in the near future. You can consider implementing your own custom control that would handle highlights or use one from the web. If I am not mistaken there was a good post of Jeff Wilcox about a highlighting control.

    Best wishes,
    Pana
    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
  6. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 16 Jun 2011 Link to this post

    I created my own solution that uses a textbox and a list that becomes visable once the textbox is focused (so it looks like a dropdown).  Then I use linq when letters are changed for filtering.  It also gives me more control over what I filter.

    The problem with Jeff Wilcox's control is that it doesn't work with virtualization.  I'm just using 3 textblocks instead. 

    There are not many parts of my code that use 100,000 dropdown items, so it's not a big deal to use.
    I'll try to post a link to my solution later.
  7. danparker276
    danparker276 avatar
    389 posts
    Member since:
    Aug 2010

    Posted 16 Jun 2011 Link to this post

    In case anyone wants to see what I did I have a link here:
    http://xamlui.com/ComboBox.htm

    I used a the RadWaterMakerText box to get a watermark on the textbox.
  8. Pana
    Admin
    Pana avatar
    748 posts

    Posted 17 Jun 2011 Link to this post

    Hello,

    Thank you for the understanding. We greatly appreciate your feedback.

    Best wishes,
    Pana
    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
Back to Top
DevCraft banner