Is there any way to allow RadAutoCompleteBox auto suggestion item to select only unique items. For example, RadAutoCompleteBox has item A, item B and item C. I don't want user to choose Item A two times. Would like to remove previously selected item from auto suggestion list. For example Item A is already in the RadAutoCompleteBox.Items collection, want to show only item B and C in auto complete suggestion box. If not possible to do that, want to cancel the selection if existing item is selected again. Is it possible to do that?
4 Answers, 1 is accepted
Thank you for writing.
You can achieve your requirement by setting the RadAutoCompleteBox.ListElement.DataLayer.DataView.Filter predicate. Thus, you can control whether a specific RadListDataItem will be displayed in the popup or not. Here is a sample implementation:
I hope this information helps. Should you have further questions, I would be glad to help.
Thanks you. It helps me.
I have attached my sample project for your reference. Please give it a try and see how it works on your end with the latest version of the Telerik UI for WinForms suite.
I hope this information helps.
Dess | Tech Support Engineer, Sr.