Allen
asked on 24 Apr 2023, 01:59 AM
| edited on 24 Apr 2023, 02:01 AM
Hey Team,
I have question for you. Do we support to open dropdown list when RadAutoComplete gets focus?
If yes, how could we I it? Can you provide an example here?
if no, will we add this functionality in the future?
Thanks
Allen
1 Answer, 1 is accepted
0
Maria
Telerik team
answered on 24 Apr 2023, 02:08 PM
Hello Allen,
Initially, the suggestions view of AutoComplete is not displayed. When you start typing in the control, the SuggestionView shows the matched results. To achieve the desired behavior you need to invoke the ShowSuggestionsmethod in the Focused event of the control. I am sending you a code snippet below with an example:
Got it, Thanks for your sharing! One more thing, can we disable AutoComplete Filter rule if we want to show all records?
Maria
Telerik team
commented on 25 Apr 2023, 08:19 AM
Hello Allen,
Could you please share why you use the AutoComplete as you want to remove the filtering option. The control filters the items in the suggestion view based on the matched results from the text typed in the control. Calling the ShowSuggestions() on Focus lists all items in the suggestion view (before applying the filtering).
To achieve the desired behavior you can use the RadComboBox control. If you want to show all records without a filter that is the better approach. The control does not have filtering option.
You could check our documentation article for the control here: ComboBox Overview. For examples of the control, you could check our git repository here: ComboBox examples.
Thanks for your explaining, I was comparing these two components, just want to make sure which one is much better with logic. So basically, they are quite similar in many respects.