is it possible to disable the automatic selection in AutoCompleteBox?

7 posts, 0 answers
  1. Markus
    Markus avatar
    1 posts
    Member since:
    Sep 2012

    Posted 11 Feb 2014 Link to this post

    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



  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 14 Feb 2014 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Glenn
    Glenn avatar
    5 posts
    Member since:
    Oct 2012

    Posted 27 Mar 2014 Link to this post

    Yeah, I would like to see that as an option that can be disabled in a future version.
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 01 Apr 2014 Link to this post

    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.

     
  6. Mike
    Mike avatar
    1 posts
    Member since:
    May 2014

    Posted 02 Apr 2015 Link to this post

    Has this option been implemented yet?
  7. Nencho
    Admin
    Nencho avatar
    1457 posts

    Posted 07 Apr 2015 Link to this post

    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.

     
  8. Heera
    Heera avatar
    10 posts
    Member since:
    Dec 2011

    Posted 09 Jun 2015 in reply to Nencho Link to this post

    Thank You.. It is working properly

    you have save my time.

Back to Top
UI for ASP.NET Ajax is Ready for VS 2017