Hi,
I am having an issue with the UltraComboEditor control. We are using this control to display a list of enum values along with an icon for each value. Below is a simple example that can demonstrate my issue. It appears there is an issue with the SuggestAppend behavior when DisplayTextAndPicture is set. When set, the type ahead functionality does not work correctly. If this is not set, SuggestAppend seems to work as expected. Can you provide me any information on what is causing this problem?
public Form1()
{
InitializeComponent();
ultraComboEditor1.LimitToList = true;
ultraComboEditor1.AutoCompleteMode = Infragistics.Win.AutoCompleteMode.SuggestAppend;
// THIS LINE SEEMS TO BE THE ISSUE. COMMENT OUT AND THE SUGGEST WHILE TYPING
// WORKS BETTER.
ultraComboEditor1.ValueList.DisplayStyle = Infragistics.Win.ValueListDisplayStyle.DisplayTextAndPicture;
ultraComboEditor1.ValueList.ValueListItems.Add(MyEnum.OneEnum, "One Enum");
ultraComboEditor1.ValueList.ValueListItems.Add(MyEnum.SecondEnum, "Second Enum");
ultraComboEditor1.ValueList.ValueListItems.Add(MyEnum.ThirdEnum, "Third Enum");
}
public enum MyEnum
OneEnum = 1,
SecondEnum = 2,
ThirdEnum = 3
Thanks,
~Corey
Mike,
Your project does work correctly for me. However, we are using Visual Studio 2010, so when I opened it with 2010 and converted the project, built, and ran, it is now not working!
My behavior is if I first type an "S" into the box, "Second Enum" will display as the suggested text in the box like it should. If I then continue to type the second letter "e", so I now have typed "Se", I no longer receive any suggestion and the only text in the box is "Se" even though it should be "Second Enum".
My version of Infragistics is 10.3.20103.2107. .NET 4.0.
Hi Corey,
What exactly is not working correctly? I tried this out using your code and everything seems to work fine for me.
I am attaching my sample project (with your code) here so you can check it out.
I, of course, am using the latest service release, so maybe there's a bug in the version you are using and you just need to update.
How to get the latest service release - Infragistics Community