autocomplete search filter not showing on second item set on text

6 posts, 0 answers
  1. steve
    steve avatar
    6 posts
    Member since:
    Nov 2017

    Posted 23 Jul 2018 Link to this post

    Hey guys, 

    got a problem with the autocomplete not showing the filtered items when I set a second text item. 

    I've created a demo project and attached the files to show the issue. 

    1) run app click 'swap search' and the 'text'; is set and shows the filtered items and click an item to set.

    2) click swap search the second time after we have set an item and the 'text' value on the control is set again but no filter list drop down. 

    i've tried resetting source etc but still never shows once an item has been clicked and set in the control. 

    any help would be appreciated. 

    i've tried the latest version of the xamarin forms control and also the releases from last year but the same issue. 

    project code link: xamarindev.co.uk/radAuto.rar

     

    regards

    Steve

     

     

  2. Yana
    Admin
    Yana avatar
    4888 posts

    Posted 26 Jul 2018 Link to this post

    Hi Steve,

    Thank you for providing the sample.

    In general, the SuggestionView should be shown only when the Text is changed and the control is focused, so the currently observed behavior to display the SuggestionView the first time is an issue on Android, we have it logged in our public portal, you could follow the item here: AutoComplete: [Android] SuggestionView is shown when Text is updated and the control is not focused.

    In order to achieve the described scenario, you will have to manually display the SuggestionView using ShowSuggestionView bool property of RadAutoComplete:

    tmp.Text = "bob";
    tmp.ShowSuggestionView = true;

    I hope this would be of help.
     
    Regards,
    Yana
    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
  3. steve
    steve avatar
    6 posts
    Member since:
    Nov 2017

    Posted 01 Aug 2018 in reply to Yana Link to this post

    im using R2 2018 and using 'ShowSuggestionView = true;' after the text change doesnt popup the list after the first item has been chosen (original issue). You can replicate see by adding it to the project i've linked to at the end of the 'Bt_clicked' event in the project.
  4. Yana
    Admin
    Yana avatar
    4888 posts

    Posted 03 Aug 2018 Link to this post

    Hello Steve,

    Could you please elaborate more on the observed behavior with RadAutoComplete?  What is the expected result and what's the current behavior of the control?

    I'm looking forward to your reply.

    Regards,
    Yana
    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
  5. steve
    steve avatar
    6 posts
    Member since:
    Nov 2017

    Posted 04 Aug 2018 in reply to Yana Link to this post

    the first time I populate the controls text property I get a list of filtered items drop down. 

    I can swap this text values several times and it will show the filtered list until i select an item and this item is set within the auto complete.

    Once the items has been selected I can set the text value of the autocomplete but now 'no' dropdown of filtered items shows.

    I've tried resetting the filtered items so etc and also rebinding the data source but nothing I have tried with reshow the dropdown filter list after the items has been selected from the list in a previous step.

  6. Yana
    Admin
    Yana avatar
    4888 posts

    Posted 07 Aug 2018 Link to this post

    Hello Steve,

    Thank you for providing the detailed explanation.

    I have managed to observe the behavior you've described, however, I am afraid it is again related to the earlier discussed issue with the AutoComplete not in focused state, it seems there is some misbehavior in the internal logic regarding this functionality of the control.

    Additionally, after investigating the case, I came to the conclusion that using ShowSuggestionView is not a proper way to handle the scenario you have, as this is a flag to mark whether the view with the filtered items should be shown when needed, it is not a method to explicitly display the suggestions. Currently, there is no suitable method I could suggest, so I logged a feature request for this in our public portal, you could cast your vote and follow the item at the link below:
    https://feedback.telerik.com/Project/168/Feedback/Details/255103-autocomplete-provide-an-option-to-explicitly-show-the-suggestionview

    I am sorry for any inconvenience caused.

    Regards,
    Yana
    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