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.
tried resetting source etc but still never shows once an item has been clicked and set in the control.
any help would be appreciated.
tried the latest version of the forms control and also the releases from last year but the same issue.
project code link: xamarindev.co.uk/radAuto.rar
regards
Steve
5 Answers, 1 is accepted
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
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
the first time I populate the controls text property I get a list of filtered items down.
I can swap this text values several times and it will show the filtered list until select an item and this item is set within the .
Once the items 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 filter list after the items been selected from the list in a previous step.
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