AutoCompleteView Starts with list Filtered

2 posts, 0 answers
  1. Joe
    Joe avatar
    3 posts
    Member since:
    May 2019

    Posted 30 May 2019 Link to this post

    I have a list that is populated when the view is navigating.  Everything loads as expected except with the AutoCompleteView the FilteredItems list starts out empty.  Everything is filtered.  If I enter a character the FilteredItems then shows what I would expect.  With the obsolete AutoComplete this does not occur, the FilteredItems is the complete list as expected.  For now sticking with the correctly behaving AutoComplete



  2. Yana
    Yana avatar
    4963 posts

    Posted 30 May 2019 Link to this post

    Hi Joe,

    Actually the behavior of the RadAutoCompleteView is the correct one -   FilteredItems collection is populated when the user starts typing and the filtering logic of the control is executed. There is an issue in the old AutoComplete that caused the FilteredItems to contain the complete list.

    Still, you could accomplish the scenario with RadAutoCompleteView with some additional logic. Basically, you would need to use a converter inside the binding of the ListView ItemsSource, so that, when there are no filtered items inside the AutoCompleteView, return the complete list of its items.  

    I have attached a sample project to show you how this would work, please download it and give it a try.

    Progress Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top