This is a migrated thread and some comments may be shown as answers.

autocomplete search filter not showing on second item set on text

5 Answers 156 Views
AutoComplete
This is a migrated thread and some comments may be shown as answers.
steve
Top achievements
Rank 1
steve asked on 23 Jul 2018, 06:15 PM

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

Sort by
0
Yana
Telerik team
answered on 26 Jul 2018, 08:42 AM
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
0
steve
Top achievements
Rank 1
answered on 01 Aug 2018, 06:56 AM
using R2 2018 and using 'ShowSuggestionView = true;' after the text change popup the list after the first item has been chosen (original issue). You can replicate see by adding it to the project linked to at the end of the 'Bt_clicked' event in the project.
0
Yana
Telerik team
answered on 03 Aug 2018, 11:02 AM
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
0
steve
Top achievements
Rank 1
answered on 04 Aug 2018, 10:47 AM

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.

0
Yana
Telerik team
answered on 07 Aug 2018, 12:49 PM
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
Tags
AutoComplete
Asked by
steve
Top achievements
Rank 1
Answers by
Yana
Telerik team
steve
Top achievements
Rank 1
Share this question
or