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

Displaying checked items in Text of a ComboBoxExt

Thread ID:





16657 Jul 21,2004 02:19 PM UTC Jul 22,2004 09:50 AM UTC WinForms 3
Tags: Tools
Paul McNally
Asked On July 21, 2004 02:19 PM UTC

I''ve created a checked combobox control using ComboBoxExt as per your example. However I would like the Combo''s Text to display a comma seperated list of all of the items that the user has ticked from the list control. I feel this is a much more usefull and logical thing to display than just the last selected item. Using the list controls ItemCheck event I can create and update the comma seperated list everytime a check box is switched, however as soon as the dropdown is closed the ComboBoxExt Text reverts back to the text of the last selected item. Is there anyway to stop that from happening? Thanks.

Administrator [Syncfusion]
Replied On July 21, 2004 08:29 PM UTC

Hi Paul, You could handle the ComboBoxExt''s DropDownCloseOnClick event as shown in the code snippet below for this purpose : private void comboBoxExt1_DropDownCloseOnClick(object sender, Syncfusion.Windows.Forms.Tools.MouseClickCancelEventArgs args) { string text = ""; foreach (object obj in this.checkedListBox1.CheckedItems) { if (text == "") text += obj.ToString(); else text += ", " + obj.ToString(); } this.comboBoxBase1.Text = text; } Please refer to the complete_sample attached here that illustrates this. Let me know if this meets your requirements. We appreciate your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Paul McNally
Replied On July 22, 2004 01:39 AM UTC

That sounds like the solution I''m after. Is the DropDownClose event new in version 2 of the controls? I''m using v1.6 here and ComboBoxExt only has a DropDown event.

Administrator [Syncfusion]
Replied On July 22, 2004 09:50 AM UTC

Hi Paul, Yes, DropDownCloseOnClick is a recently added event. I am afraid, Essential Suite v1.6 is very old, and we strongly recommend you to upgrade to v2.0. Please open a DirectTrac incident in this regard, and I will update you with the download instructions for the latest v2.0 release. We appreciate your cooperation, and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon