First off, thanks for the new "Contains" feature. It works great with one possible exception.
One of my WinCombo's datasource is a list of Statuses, two of which have DisplayValues of "Issued" and "Re-Issued". The AutoCompleteMode is set to "Suggest" and AutoSuggestFilterMode is set to "Contains" for this WinCombo. The auto suggest in combination w/ contains works great when an end user is making their selection but I have hit an issue with this. I programatically set the value of this WinCombo when another form event fires and even though I am setting the valuemember for "Issued" , the WinCombo auto suggests both "Issued" and "Re-Issued."
Upon further investigation, the value portion is set properly but even though it has a valid value, it suggests more options (based off of the new "Contains" property). What bothers me is that this happens even if the control doesn't have focus. I know how to determine if a WinCombo is dropped down and also close it but I certainly don't want to have to put this type of extra processing throughout my application.
So my question is this, is this a "Bug/Issue" or is there a property that I can also enable/disable on the WinCombo to correctly take advantage of the "Contains" AutoSuggestFilterMode?
-Ian
Hi Kevin,
Are you saving the actual strings to the data? Or are you using the dropdown to provide a translation from ID to display text? My guess is that your "Brad Hirsh" and "James "Hirsh" simply have the same ID number. Otherwise, I can't see how the grid could possibly be displaying the correct text while saving the wrong text.
Also.... are you sure that this only happens when you using AutoSuggest? I can't see why that would matter.
Mike and Dan,
I have a similar issue. I have a combobox in a grid cell. When autosuggest.append is turned on this is what happens.
If the combo is populated with names like Brad Hirsch and James Hirsch the combo allows me to select James Hirsch but Brad Hirsch is saved to the database. From what I can tell the row_selected method fires twice. The first time through is selects the correct row, the second time through it finds the first match and selects it.
I am running the 2009 Vol2 winform controls.
ThanksKevin
Mike-
I made a quick demo but only having a few controls I wasn't able to duplicate the issue either. If I can track down more info from my main application, I will post it here.
Thanks for checking into it. For now, I just put some code to check if it is dropped down after setting the value.
I tested this out and it works fine for me. Settings the Value in code when the control does not have focus does not display any suggestions, which is correct.
I'm attaching my sample here so you can run it and see if you get the same results.
If not, then this must be a problem with the version of the controls you are using. I, of course, am using the latest service release. So in that case, you should get the latest service release and see if that helps.
How to get the latest service release - Infragistics Community
If my sample does not have the problem, then there must be some other factor at work here, and we will need a small sample project from you that demonstrates the issue so we can check it out.
Sorry for the confusion but yes. The combo box doesn't have focus but I when setting the value, it is auto suggesting. I don't have a small snipet of code currently but if you need one, I am sure I could come up with something.