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

ComboBox Virtualization with Highlighting Text

6 Answers 77 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
danparker276
Top achievements
Rank 2
danparker276 asked on 11 Jun 2011, 12:35 AM
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>

6 Answers, 1 is accepted

Sort by
0
danparker276
Top achievements
Rank 2
answered on 11 Jun 2011, 02:34 AM
I was thinking that since Silverlight 5 combo boxes support text searching, are you waiting to put the new features in Silverlight 5 instead?
0
danparker276
Top achievements
Rank 2
answered on 12 Jun 2011, 06:13 AM
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.
0
Accepted
Pana
Telerik team
answered on 16 Jun 2011, 02:29 PM
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
0
danparker276
Top achievements
Rank 2
answered on 16 Jun 2011, 04:50 PM
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.
0
danparker276
Top achievements
Rank 2
answered on 17 Jun 2011, 01:27 AM
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.
0
Pana
Telerik team
answered on 17 Jun 2011, 07:06 AM
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
Tags
ComboBox
Asked by
danparker276
Top achievements
Rank 2
Answers by
danparker276
Top achievements
Rank 2
Pana
Telerik team
Share this question
or