Force user to only select from the available list

3 posts, 0 answers
  1. Cecile
    Cecile avatar
    10 posts
    Member since:
    Jul 2010

    Posted 02 Dec 2013 Link to this post

    Hi,

    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?


    Thanks,
    Olivier.
  2. Dieter
    Dieter avatar
    1 posts
    Member since:
    Dec 2013

    Posted 04 Dec 2013 Link to this post

    Hi,

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

    Pretty similar to an older issue: (http://www.telerik.com/community/forums/wpf/autocompletebox/when-user-types-out-full-item-name.aspx)
    Is this fixed by now?

    Thanks in advance,
    Dieter
  3. UI for WPF is Visual Studio 2017 Ready
  4. Kalin
    Admin
    Kalin avatar
    1207 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.

    Regards,
    Kalin
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    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 >>
Back to Top