We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to change the text in the ComboBoxBarItem without changing the user selection

When I make this call:

myBarItem.TextBoxValue = "XXX";

then the combo box's selecteditems are reset.

How can I change the text displayed in the textbox of the ComboBoxBarItem without changing which items are selected?


2 Replies

AD Administrator Syncfusion Team February 10, 2008 07:07 AM UTC

Hi Andrew,

Thank you for your interest in Syncfusion products.

You can change the TextBoxValue of ComboBoxBarItem without changing the user selection using Databindings concept. Please refer the sample in the below location and let me know if this helps you.

Sample

http://websamples.syncfusion.com/samples/Tools.Windows/F71522/main.htm

Regards,
Jaya



AN Andrew February 28, 2008 05:33 PM UTC

Thanks for your reply, however I do not think that will work in my case.

What I would like to do is have a multiple-select combo box that displays a comma-separated list of the selected items, rather than just the text of the first selected item. When I try to set the combobox text from code, it automatically changes the user selection.

Is there another solution?

Thanks,

Andrew


Loader.
Live Chat Icon For mobile
Up arrow icon