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

Automatically Selected Items

4 Answers 47 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Jeff
Top achievements
Rank 1
Jeff asked on 14 Aug 2014, 02:54 AM
I am trying to get the autocompletebox to not select any results from the drop down list of values. It seems as soon as any results are displayed the first result is always selected by default so if you hit enter or click a button to process it will ignore any part string you may have there and instead take the selected value.

I would like the autocompletebox to act more like the google search box for example where no value is selected by default and will instead take your inputted string as the default value.

I have tried using the clientside API to no avail to deselect the item.

Any help would be appreciated.

4 Answers, 1 is accepted

Sort by
0
Helen
Telerik team
answered on 15 Aug 2014, 12:02 PM
Hi,

Did you try to set the "DefaultMessage" property:

DefaultMessage
="Select..."

Otherwise you may deselect the first item by simply pressing the upper arrow on your keyboard. Once the item is deselected it will not select the first item when the RadAutoCompleteBox lost the focus.


Regards,
Helen
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
Jeff
Top achievements
Rank 1
answered on 17 Aug 2014, 09:41 PM
Thanks for your reply. I have explained to our users how the autocomplete works by default by pressing the up arrow. I am however still receiving complaints that it does not seem intuitive enough for our search functions. They still want it to work by not selecting a result by default. Is there a way to achieve this?
0
Accepted
Nencho
Telerik team
answered on 18 Aug 2014, 11:21 AM
Hello Jeff,

As from Q2 2014 SP1 we addressed this functionality by the possibility to manage the feature by the HighlightFirstMatch property. You could simply set it to false and the first item will not be highlighted by default.

Regards,
Nencho
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
Jeff
Top achievements
Rank 1
answered on 18 Aug 2014, 09:22 PM
Awesome, thanks.

That is just what I wanted to hear :)
Tags
AutoCompleteBox
Asked by
Jeff
Top achievements
Rank 1
Answers by
Helen
Telerik team
Jeff
Top achievements
Rank 1
Nencho
Telerik team
Share this question
or