Is it possible to databind sfComboBox to selectedValue (from valueMember) instead of text?

I need a combobox with clear button to give the user the possibility to save a null value to the databound field.

sfCombobox seems to have the clear button but I can't find a way to databind it bto selectedValue (connected to valueMember and not to displayMember).

Bound field contain an integer value and the combo has to be used to show the display connected to that numeric value.

Thanks

Miche




1 Reply

PV Priyanka Vijayasankar Syncfusion Team May 31, 2024 04:22 PM UTC

Hi Michele,


Apologies for the delay. We have reviewed your request and have created a sample to meet your needs. Please refer the attached sample for your reference.

If there is any misunderstanding with the requirement, could you please provide additional details or a modified sample with screenshots. This will assist us in finding a solution more quickly.


Regards,

Priyanka Vijayasankar


Attachment: SfComboBox_DataBind_47419967.zip

Loader.
Up arrow icon