I am attempting to use your Silverlight ComboBox to autosuggest data. I have the ComboBox working with the RadComboBox items bound/populated via a WCF service which returns a set of 10 choices. This works fine and I am able to update the options based on the data entered into the textbox portion of the control. The issue I have is the when you press the spacebar, as required for the space between word, the control closes the list of options despite the fact that I have the StaysOpenOnEdit="True". It also does not seem to enter the space into the field until I press spacebar a second time. Then if you open the list of options the text field becomes highlight/selected so that if you start typing you over-write your waht you already typed. In order to work around this I tried adding the following in a KeyUp and KeyDown methods:
if (e.Key == Key.Space)
{
((RadComboBox)sender).Text = String.Concat(((RadComboBox)sender).Text.ToString(), " ");
e.Handled =
true;
}
this does not seem to prevent the close of the list and it places the cursor in the text field to the begining - another issue. I also tried adding a statement that set the IsDropDownOpen = true but this caused entered text to be highlighted.
Is there a way to either deselect the entered text or open the list without effecting the selection of the entered text?
Thanks,
Chris Bywaters