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

TextSearch doesn't always highlight found items

4 Answers 106 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Edmund Covington
Top achievements
Rank 1
Edmund Covington asked on 05 Feb 2014, 11:32 AM
I am using the combobox search and I keep finding that the search doesn't necessarily highlight the item that it has found. Often if I hit return, it selects the item and so I can see that it has found it, but I have my combobox set up to have  auto dropdown, and I would expect that the item that is found is always highlighted.

Do you have any ideas what I may be doing wrong?

Here is a copy of the one of my GridViewComboBoxColumns:


                        <telerik:GridViewComboBoxColumn Header="{Loc Material}" MinWidth="80" Width="150"
                                    ColumnGroupName="columnGroupCostType"
   IsGroupable="False"
   IsFilterable="False"
   EditTriggers="CellClick"
                                    ItemsSourceBinding="{Binding Path=Data.DefaultItemCategories.CostTypes, Source={StaticResource bindingProxy}}"
                                    DataMemberBinding="{Binding Path=MaterialCostTypeCode, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
                                    SelectedValueMemberPath="Code"
                                    DisplayMemberPath="Description"
                                    telerik:TextSearch.TextPath="Code"                                   
                                    ItemTemplate="{StaticResource CostTypeComboBoxItemTemplate}"
                                    IsReadOnlyBinding="{Binding Path=IsMaterialCostTypeReadOnly}"/>





4 Answers, 1 is accepted

Sort by
0
Edmund Covington
Top achievements
Rank 1
answered on 05 Feb 2014, 11:43 AM
I have looked at the example:

http://demos.telerik.com/silverlight/#ComboBox/DataBinding

And I have found that I can see the same behaviour. If you jump from item to item a few times, then you find that it doesn't always select the item that corresponds to the letter typed. 
0
Kalin
Telerik team
answered on 10 Feb 2014, 08:48 AM
Hi Edmund,

I was not able to reproduce the described issue. Could you please share some more details on the exact scenario? What type of collection do you use as an ItemsSource? Also you could give us the exact steps to reproduce the explained behavior in the online example you mentioned.

I'm looking forward to hearing from you.

Regards,
Kalin
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

0
Edmund Covington
Top achievements
Rank 1
answered on 10 Feb 2014, 09:46 AM
What we see happening fairly regularly is that typing in items from a combo list doesn't select (highlight) the item that it should. Sometimes it requires the item to be typed several times before you can see that selection has changed and the right item has been chosen. On your demo, I can't reproduce it as frequently but you can see sometimes that if you're swapping between items quickly, you can type a letter and it doesn't select another item, so you have to press that letter again.
0
Kalin
Telerik team
answered on 12 Feb 2014, 11:16 AM
Hi Edmund,

I managed to reproduce the explained behavior. It happens because the auto complete buffer is not cleared yet when you want to jump to another item. In order to avoid that you should set the static TextSearch.AutoCompleteTimeout property to one millisecond for example the following way:
public MainWindow()
{
    InitializeComponent();
    Telerik.Windows.Controls.TextSearch.AutoCompleteTimeout = new TimeSpan(0, 0, 0, 0, 1);
}

For details about the AutoCompleteTimeout property please check the following article from our online help documentation:
http://www.telerik.com/help/wpf/radcombobox-features-autocomplete.html#Using_TextSearch.AutoCompleteTimeout_Property

Hope this helps.

Regards,
Kalin
Telerik

Check out the new Telerik Platform - the only modular platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native apps. Register for the free online keynote and webinar to learn more about the Platform on Wednesday, February 12, 2014 at 11:00 a.m. ET (8:00 a.m. PT).

Tags
ComboBox
Asked by
Edmund Covington
Top achievements
Rank 1
Answers by
Edmund Covington
Top achievements
Rank 1
Kalin
Telerik team
Share this question
or