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

MarkFirstMatch / Limit to items in list

1 Answer 88 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Carlo
Top achievements
Rank 1
Carlo asked on 12 Sep 2014, 01:32 PM
Hello -

We're using RadComboBox as our standard drop down list in our product. We are using MarkFirstMatch to enable the "type ahead" function in lists, however we have found that if users type in invalid text the ComboBox will keep the value anyway (invalid being not in the list of items to select when used as a DDL). We would like to restrict user input only to the items found in the list, how might we go about doing this? Is there a good baked in way?

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 17 Sep 2014, 08:01 AM
Hello Carlo,

In order to achieve the desired functionality, you should set the MarkFirstMatch property to true and AllowCustomText to false. You could test the behavior with our online demo here :

http://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/autocompleteclientside/defaultcs.aspx


Simply set the aforementioned properties configuration to the AutoComplete fieldset demo and you could test the behavior.

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.

 
Tags
ComboBox
Asked by
Carlo
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or