This question is locked. New answers and comments are not allowed.
Hello, I'm using the first solution you propose on http://www.telerik.com/community/forums/winforms/combobox/how-to-restrict-user-from-entering-text-which-is-not-in-a-display-member-of-combobox-items.aspx and works fine.
I did a little change and the event handler looks like this:
void cbNameElement_TextChanging(object sender, Telerik.WinControls.TextChangingEventArgs e)
{
if (!e.NewValue.Equals(string.Empty))
{
if (cbName.FindItem(e.NewValue) == null)
{
this.cbName.Text = string.Empty;
}
}
}
What I accomplished with this is that if the user writes something that is not in the list the text of the combobox is cleared.
Now I have a problem. You clear the text, then you hit ENTER, and you write something that is not on the list, that text isn't cleared.
Please help me with this.
Thanks in advance.