Force user to only select from the available list

5 posts, 0 answers
  1. Cecile
    Cecile avatar
    11 posts
    Member since:
    Jul 2010

    Posted 02 Dec 2013 Link to this post


    By default the AutoCompleteBox behaves like a free-text control, whereby one can type any text.
    If the input text has any match, these show in the dropdown, else the dropdown is blank.

    How can i force the user to only select from the available list of items?

  2. Dieter
    Dieter avatar
    1 posts
    Member since:
    Dec 2013

    Posted 04 Dec 2013 Link to this post


    I'm having the same problem.
    When I type out the full value, my selected item is null. 

    Pretty similar to an older issue: (
    Is this fixed by now?

    Thanks in advance,
  3. Kalin
    Kalin avatar
    1360 posts

    Posted 05 Dec 2013 Link to this post

    Hi guys,

    Oliver, for this scenario you may need to use RadComboBox instead of the AutoCompleteBox. You would just need to its IsEditable and IsReadOnly properties to true - this way the user will be only able to type only from the items in ComboBox. Please give it a try and let us know if this works for you.

    Dieter, in the current implementation when you have typed the full value and press Enter or lose the focus the matched item has been selected.

    Hope this helps.

    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  4. Tessa
    Tessa avatar
    9 posts
    Member since:
    Jul 2011

    Posted 10 Apr 2017 in reply to Kalin Link to this post

    Hi Kalin, 

    I am wanting to force the User to only select from the Available list too. 

    You have given a solution of using the RadComboBox - but I am currently switching from the RadComboBox to the AutoCompleteBox due to other restrictions with the RadComboBox.

    Please can you tell me if there is any way of getting this behaviour for the AutoCompleteBox please.



  5. Kalin
    Kalin avatar
    1360 posts

    Posted 13 Apr 2017 Link to this post

    Hi Tessa,

    Could you please share some more details regarding the exact scenario you need to achieve? You want  to allow users to type only text from the items in the ItemsSource? If so this is not supported from the control - however it could be easily achieved with RadComboBox.

    If you explain the scenario we would suggest the best possible solution. I'm looking forward to hearing from you.

    Telerik by Progress
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top