TextSearch doesn't always highlight found items

5 posts, 0 answers
  1. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 05 Feb 2014 Link to this post

    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}"/>





  2. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 05 Feb 2014 Link to this post

    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. 
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 10 Feb 2014 Link to this post

    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).

  5. Edmund Covington
    Edmund Covington avatar
    16 posts
    Member since:
    Jan 2014

    Posted 10 Feb 2014 in reply to Kalin Link to this post

    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.
  6. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 12 Feb 2014 Link to this post

    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).

Back to Top
UI for WPF is Visual Studio 2017 Ready