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.
Unfortunately, activation email could not send to your email. Please try again.

How to programatically select items in a multiselect ComboBoxBarItem

Thread ID:

Created:

Updated:

Platform:

Replies:

71561 Feb 5,2008 04:50 PM Feb 7,2008 01:01 AM Windows Forms 3
loading
Tags: Tools
Andrew
Asked On February 5, 2008 04:50 PM

When I programatically select items in a (multiselect) ComboBoxBarItem control by callling the ListBox.SetSelected method, the text displayed in the underlying Textbox remains blank. If the user selects items using the mouse, however, this gets populated with one of the items that is selected.

How can I make sure that the control behaves the same way as it would if the user were to select items using the mouse, but programatically?


Jisha Joy [Syncfusion]
Replied On February 6, 2008 08:09 AM

Hi Andrew,

Thank you for posting your query to us.
I am afraid that I was not able to reproduce the issue. I have created a simple sample to test this issue and it is available in the following link.
http://www.syncfusion.com/support/user/uploads/ComboBarItem_70247098.zip

Please have a look at the above sample and if still the issue exists, could you please try reproducing it in the above sample or send us the reproducing steps so that we could sort out the cause of the issue and provide you a solution?
Regards,
Jisha






Andrew
Replied On February 6, 2008 01:35 PM

Thanks for your reply.

This was the key statement that I was missing:

this.comboBoxBarItem1.TextBoxValue = this.comboBoxBarItem1.ListBox.Text;


Jisha Joy [Syncfusion]
Replied On February 7, 2008 01:01 AM

Hi Andrew,

Thank you for your update. Glad to hear that the issue has solved.
Thank you for using Syncfusion Products.
Regards,
Jisha




CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;