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

Show suggestions with before text entered

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.
Rob
Top achievements
Rank 1
Rob asked on 29 Jan 2015, 09:14 PM
Hi

is there a mechanism to display the suggestion list before the user enters any text? I'm looking for something like a ComboBox  / AutoCompleteBox hybrid control.

Thanks,

Rob.

3 Answers, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 03 Feb 2015, 04:16 PM
Hello Rob,

You can show the suggestion list through the RadAutoCompleteBox.IsDropDownOpen property. For example: 

this.autoCompleteBox.IsDropDownOpen = true;

Note, that you should ensure the control has been initialized when you change the property.

Regards,
Ivaylo Gergov
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
Valid Development Factory
Top achievements
Rank 1
answered on 27 Jan 2016, 01:42 PM

Hey Ivaylo,

 I understand that this would open up the dropdown list but wouldn't it be empty since the default behavior is that when no text is entered, the suggestion list is empty?

 The way I read Rob's question is:

1) How can we show a suggestion list -showing all suggestions - when no text has been entered YET.

2) And filter the suggestion list according the user entered text while typing

 

That way the control would be both a dropdown list with selectable items AND an autocomplete box showing the matching values from the list.

 How should one setup the component to enable this behaviour?

0
Ivaylo Gergov
Telerik team
answered on 01 Feb 2016, 07:57 AM
Hello guys,

I have attached a sample project to demonstrate that when you open the dropdown and no text is entered the suggestion list contains all the elements.

I hope this helps. 

Regards,
Ivaylo Gergov
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
AutoCompleteBox
Asked by
Rob
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Valid Development Factory
Top achievements
Rank 1
Share this question
or