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

How to prevent duplicate values with autocomplete?

1 Answer 457 Views
ComboBox
This is a migrated thread and some comments may be shown as answers.
Paul
Top achievements
Rank 1
Iron
Paul asked on 11 Sep 2015, 04:21 PM
I have been looking at the demo with the auto complete ​functionality of the emails with the separator. It seems that if you select an email and separate it and add another email, you can select the exact same email again. For example this could be possible selection: aria@telerik.com, ann@telerik.com, christina@telerik.com, christina@telerik.com. Is there a way to prevent the entry from being selected again?

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 16 Sep 2015, 12:57 PM
Hello Paul,

I am afraid that in such scenario you cannot prevent the end-user from duplicating the added item, This is why, I would suggest you a slightly different scenario - you can implement the CheckBoxes functionality of the RadComboBox, along with filter field, on order to facilitate the user selection.

In the attachment you can find a simple example on how the above suggest approach could be implemented.

Regards,
Nencho
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
ComboBox
Asked by
Paul
Top achievements
Rank 1
Iron
Answers by
Nencho
Telerik team
Share this question
or