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

Displayed unfiltered suggestions

3 Answers 15 Views
AutocompleteBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Szymon
Top achievements
Rank 1
Szymon asked on 09 Jul 2014, 09:58 PM
Hi.

So I got the control working neatly and user-friendly up to the point where I want to change z selection. In order to show other suggestions after focusing on the AutoCompleteBox I need to clear or change the SelectedText. This is somewhat cumbersome.
After I get focus to my AutoCompleteBox with a already selected item, I'd like to display the whole unfiltered SuggestionSource which will get filtered only when the SelectedText is changed.

How can I achieve this?

King Regards,
Simon

3 Answers, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 14 Jul 2014, 03:21 PM
Hi Simon,

Showing only results, which are relevant to the criteria entered in RadAutoCompleteBox is natural for the control. To workaround this, you can set the EmptyFilterBehavior to EmptyFilterBehavior.ShowAll. Then you can subscribe to GotFocus event and clear the Text property. This way, when focused, the control text will be cleared and all suggestions will be shown in the dropdown.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Szymon
Top achievements
Rank 1
answered on 14 Jul 2014, 03:34 PM
[quote]Ves said:Hi Simon,
To workaround this, you can set the EmptyFilterBehavior to EmptyFilterBehavior.ShowAll. Then you can subscribe to GotFocus event and clear the Text property. This way, when focused, the control text will be cleared and all suggestions will be shown in the dropdown. 
[/quote]

I do understand this is how the control behaves, but it's just not user-friendly. Even more, deleting the Text property content on GotFocus is even more unintuitive.
So is it possible to make the control behave as if the text was empty, but not clearing the text property, so to show all the possible suggestions?

King regards,
Szymon

0
Ves
Telerik team
answered on 17 Jul 2014, 02:40 PM
Hi Szymon,

I am afraid it is not possible to make the control behave this way.

Best regards,
Ves
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
AutocompleteBox
Asked by
Szymon
Top achievements
Rank 1
Answers by
Ves
Telerik team
Szymon
Top achievements
Rank 1
Share this question
or