Select/Add Item in Combo that does not exist in Item Source

Hi,

looking for a way to make use of the IsEditable option to allow a user to enter/select an item, which is not contained in the ItemSource.

e.g. the Combo allows the selection of A,B and C, but a user wants to have D.
Currently i can only select what is part of the combo.

Any workaround?

thanks,

Helmut


3 Replies

MJ Madhumithan Jayapathi Syncfusion Team October 5, 2023 12:21 PM UTC

Hi Helmut,


We have reviewed your query, and currently, there is no direct support to select an item that is not in the ItemSource. However, you can manually enter an item and press the Enter key to add the item to the ItemSource in the KeyUp event. A sample has been attached for your reference. If you require any additional assistance, please feel free to reach out.

Regards,
Madhumithan Jayapathi


Attachment: ComboBoxAdvWpf_d3e8a4b2.zip


HW Helmut Wahrmann November 1, 2023 10:39 AM UTC

Hi  Madhumithan,


that did the trick.


thanks,

Helmut



GM Gilbert Manoj Rajamanikkam Syncfusion Team November 6, 2023 03:01 PM UTC

Hi Helmut Wahrmann,

We hope that your issue has been fixed. Please let us know if you need any other assistance. We are happy to assist you.

Regards,
Gilbertmanoj R.


Loader.
Up arrow icon