Prevent duplicate tokens from being added

How to prevent duplicate items/tokens from being selected in the combobox


Attachment: Screen_Shot_20220705_at_10.19.36_AM_1cb03f41.zip

1 Reply

SR Shivani Ramakrishnan Syncfusion Team July 6, 2022 09:02 AM UTC

Hi Mario,



Query: How to prevent duplicate items/tokens from being selected in the Combobox



Already we provided the IsSelectedItemsVisibleInDropDown property to restrict the duplicate items shown in the dropdown. Below is the code snippet.


<combobox:SfComboBox 

                             MultiSelectMode="Token"

                             IsSelectedItemsVisibleInDropDown="False"

                             HeightRequest="40"

                             DataSource="{Binding EmployeeCollection}"

                             DisplayMemberPath="Name" />



We have prepared a new sample for your reference and please get it from the attachments. Please let us know if you need any other details.


Regards,

Shivani


Attachment: ComboBoxToken_a06bb9b2.zip

Loader.
Up arrow icon