- Home
- Forum
- General Discussion
- Cannot clear ComboBoxAdv text & clear selection from the code (2.0.5.0)
Cannot clear ComboBoxAdv text & clear selection from the code (2.0.5.0)
Cannot clear ComboBoxAdv text from the code(2.0.5.0). Cannot unselect by settig selected index to -1.
I''m using ArrayList of objects with code & display properties, setting those in MemberValue & DisplayValue and setting DataSource as the ArrayList.
Tried Text = "", Text = null, SelectedIndex = -1 - NOTHING HELPS!
SIGN IN To post a reply.
6 Replies
AD
Administrator
Syncfusion Team
September 28, 2004 12:47 PM UTC
Hi,
You could achieve this as shown in the following code :
comboBoxAdv.TextBox.Text = "";
Let me know if you need any other information. Thanks for choosing Syncfusion products.
Regards,
Guru Patwal
Syncfusion, Inc.
AD
Administrator
Syncfusion Team
September 28, 2004 03:51 PM UTC
Unfortunately, this didn''t help.
This is my sample code:
ArrayList aList = new ArrayList();
aList.Add( new CodedItem( "Displ1", "CD1" ) );
aList.Add( new CodedItem( "Displ2", "CD2" ) );
// where CodedItem is a simple class with Display & Code properties whose names r assigned to corresponding properties of the control.
comboBoxAdv1.DataSource = aList;
comboBoxAdv1.TextBox.Text = "";
AD
Administrator
Syncfusion Team
September 30, 2004 05:28 PM UTC
Hi MMarinich,
This could be possibly because of a bug in v2.0.5.0. I have created a sample as per your update in v2.1.0.9, and see that the ComboBoxAdv behaves as expected when its Text or TextBox.Text properties are set to empty strings. Please refer to the test sample attached here. We strongly recommend you to upgrade to v2.1.0.9, and let me know if you continue to experience this problem in v2.1.0.9. We appreciate your cooperation.
Regards,
Guru Patwal
Syncfusion, Inc.
Hi MMarinich, This could be possibly because of a bug in v2.0.5.0. I have created a sample as per your update in v2.1.0.9, and see that the ComboBoxAdv behaves as expected when its Text or TextBox.Text properties are set to empty strings. Please refer to the test sample attached here. We strongly recommend you to upgrade to v2.1.0.9, and let me know if you continue to experience this problem in v2.1.0.9. We appreciate your cooperation. Regards, Guru Patwal Syncfusion, Inc.
I am a single free lancer developer and I want to claim your free licence of your product.
Thank you
Angelos Kaiafas
SU
Suresh
January 10, 2018 12:47 PM UTC
Syncfusion makes great products and eBooks.
ST
SaBrena Toler
Syncfusion Team
January 11, 2018 03:06 PM UTC
Hello Angelos,
We thank you for your interest in our controls. I have forwarded your inquiry to our Sales Department; one of our team members will contact you shortly.
Please let me know if you have any questions.
Best,
SaBrena
SIGN IN To post a reply.
- 6 Replies
- 4 Participants
-
AD Administrator
- Sep 28, 2004 12:28 PM UTC
- Jan 11, 2018 03:06 PM UTC