Bug: ComboBoxFilteringBehavior incorrectly selects first item in list when there is no match

2 posts, 0 answers
  1. Aleksandar
    Aleksandar avatar
    14 posts
    Member since:
    Nov 2012

    Posted 12 Dec 2016 Link to this post

    My FindFullMatchIndex method returns -1 when an item is not found. Instead of selecting no items and leaving the scroll position where it's at like the default search text behavior; the combobox scrolls the list to the top and selects the first item in the list. How can I prevent the combobox from selecting the first item in the list when there isn't a match?
  2. Nasko
    Nasko avatar
    706 posts

    Posted 15 Dec 2016 Link to this post

    Hello Aleksandar,

    The observed by you behavior is an expected one with the current implementation of RadComboBox. When the FindFullMatchIndex returns -1 the first item is expected to be highlighted and currently this is how the control is expected to work and there isn't any approach to use in order  to modify or alter that behavior. Some more information concerning the FindFullMatchIndex and how it behaves you could find on the following link from our documentation:

    We hope the provided information will be helpful for you.

    Telerik by Progress
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top