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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Closing ContextChoicePopup after string filtering

Thread ID:





80157 Mar 18,2009 12:18 AM UTC Mar 18,2009 12:15 PM UTC WinForms 1
Tags: EditControl
Asked On March 18, 2009 12:18 AM UTC

Ok, i have populated my context choice popup list with 3 objects > eg, car, cardio and carpet.

As i press c on the keyboard, the list is displayed with all 3 items. As i type "car", all 3 remain but when i type "card", only cardio remains. This is as expected.

The problem is, is that if i typed "carb", then no entry matches this string and so results in an empty list. This is a little unfriendly, and i would prefer it if the context popup would close when no items are matched.

I've tried comparing the selected item with GetCurrentWord() and that doesnt work. Any help please?

Thanks in advanced, David.

Administrator [Syncfusion]
Replied On March 18, 2009 12:15 PM UTC

Hi David,

Thank you for using Syncfusion products.

Please use the codesnippet below to close the context popup if the entered string not matches the list.


void editControl1_KeyUp(object sender, KeyEventArgs e)
string s = this.editControl1.GetCurrentWord();

if (s != "car" && s != "card" && s != "cardio")

Please let me know if this helps you.



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

or the page will be automatically redirected to 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