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

is it possible to disable the automatic selection in AutoCompleteBox?

6 Answers 384 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 11 Feb 2014, 11:39 AM
Hello,

I use the AutoCompleteBox in my project to check if a string already exists in the database and display the already existing items to the user.

My problem is that a user types in the AutoCompleteBox and as soon as the result list pops up the first item in this list is automatically selected. If the user now presses tab or return or clicks into a different area if the screen, the selected entry in the result list is automatically selected and replaces the string entered by the user. This is very annoying if the user tries to enter a string which is only a part of an already existing string but not the same.

In my example the database contains the following strings: 000100, 000110, 000200, 000210

Now the user wants to add a new item 0001. This is not possible because as soon as the user has entered 0001 the AutoCompleteBox displays a list containing 000100 and 000110 and it automatically selects the first item in that list.
It is possible to get rid of that autoselection by pressing the up arrow key or explicitly moving the mouse out of the dropdown list - but from a usability point of view this is not acceptable. It would be very helpful if I could tell the AutoCompleteBox to avoid the automatic selection in such cases.

Does anyone know a way to get around this issue?

Best regards,
Markus



6 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 14 Feb 2014, 11:21 AM
Hello Markus,

I would like to clarify that your observations are absolutely correct and the RadAutoComplteBox automatically selects the first item in the list. This is built-in functionality and the only workaround in to avoid this behavior is to deselect the item before you press tab or click into a different area on the screen. You can do that 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.

I would like to apologize for any inconveniences caused.

Regards,
Boyan Dimitrov
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the UI for ASP.NET AJAX, subscribe to the blog feed now.
0
Glenn
Top achievements
Rank 1
answered on 27 Mar 2014, 09:53 PM
Yeah, I would like to see that as an option that can be disabled in a future version.
0
Boyan Dimitrov
Telerik team
answered on 01 Apr 2014, 02:56 PM
Hello,

I would like to clarify that I have forwarded your suggestion to our developer team for consideration.

Regards,
Boyan Dimitrov
Telerik
 

Build cross-platform mobile apps using Visual Studio and .NET. Register for the online webinar on 03/27/2014, 11:00AM US ET.. Seats are limited.

 
0
Mike
Top achievements
Rank 1
answered on 02 Apr 2015, 01:58 PM
Has this option been implemented yet?
0
Nencho
Telerik team
answered on 07 Apr 2015, 07:22 AM
Hello MIke,

Yes, the ability to manage of this feature is already implemented and it is controlled by HighlightFirstMatch property of the RadAutoCompleteBox. You can just set it to false and the first matched item from the dropdown won't get added as an entry.

Regards,
Nencho
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Heera
Top achievements
Rank 1
answered on 09 Jun 2015, 06:58 AM

Thank You.. It is working properly

you have save my time.

Tags
AutoCompleteBox
Asked by
Markus
Top achievements
Rank 1
Answers by
Boyan Dimitrov
Telerik team
Glenn
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Nencho
Telerik team
Heera
Top achievements
Rank 1
Share this question
or