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.

ComboBoxAutoComplete with AutoSuggest

Thread ID:

Created:

Updated:

Platform:

Replies:

78212 Dec 3,2008 08:06 AM Dec 8,2008 01:54 AM Windows Forms 5
loading
Tags: Tools
Schneider Leah
Asked On December 3, 2008 08:06 AM

I'd like combobox to open a dropdown with the range of valid values automatically when the user starts typing text. But I can only get autocomplete functionality on the text box and the dropdown has to be opened manually.
Please help.


Administrator [Syncfusion]
Replied On December 4, 2008 06:12 AM

Hi Leah,

Thank you for using Syncfusion products.

comboBoxAutoComplete : Display dropdown automatically

Please use the following codesnippet to display the dropdown with the range of valid values automatically when the user starts typing text.

[C#]

comboBoxAutoComplete1.AutoCompleteControl.SetAutoComplete(this.comboBoxAutoComplete1, AutoCompleteModes.AutoSuggest);

Please let me know if this helps you.

Regards,
Jaya



Schneider Leah
Replied On December 4, 2008 09:22 AM

Thanks a lot!


Administrator [Syncfusion]
Replied On December 4, 2008 10:04 PM

Hi Leah,

Thanks for the update.

Please let me know if you have any questions.

Regards,
Jaya


Schneider Leah
Replied On December 7, 2008 09:00 AM

Hi,
Sonething weird with this property: it works for the first time you start typing but if the cursor leaves the combobox and then gets back - the drop down is not getting open...
Please help


Administrator [Syncfusion]
Replied On December 8, 2008 01:54 AM

Hi Leah,

Thanks for the update.

Please try calling SetAutoComplete() method in comboBoxAutoComplete1_TextChanged event handler as follows and let me know if this helps you.


[C#]

void comboBoxAutoComplete1_TextChanged(object sender, EventArgs e)
{
comboBoxAutoComplete1.AutoCompleteControl.SetAutoComplete(this.comboBoxAutoComplete1, AutoCompleteModes.AutoSuggest);

Regards,
Jaya
}


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.

;