ComboBox Autocomplete


Author
Message
Doug Birtell
Doug Birtell
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: Forum Members
Posts: 33, Visits: 64
I have multiple comboboxes on a winform that are bound to business objects.  It seems that no matter how I set the Autocomplete, or DropdownStyle, or BindingProperty, I get these results.

If I type very quickly, then the list narrows to the correct item,

If I type too slow, then the list always goes to the item that starts with the letter I just typed.

i.e.  If we were to use state abbreviations as an example...

If I type M, then the combobox will select ME. (the first of the M's)  If I was wanting the abbreviation MD, and I then slowly type a 'D' after the 'M', then the combobox goes to DE, not MD as I would expect.  HOWEVER ! ! ! IF I TYPE MD REALLY QUICKLY, then it works. 

Is there some type of event handler that I need to code to change the behavior to what I would expect?

Thanks!

Doug

Replies
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
The autocomplete is actually basic .NET functionality that we just inherited, so I'm not sure exactly how they have it plumbed behind the scenes. My guess is that something in the way you are setting up the combo or selection items is getting in the way of the autocomplete.  It seems odd that you and I are experiencing different functionality with the same settings.

Check out the attatched test app. When it launches just point it to your StrataFrame Sample database and see if it the combo functions as you want it to.

Attachments
AutoCompleteTest.zip (365 views, 739.00 KB)
Doug Birtell
Doug Birtell
StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)StrataFrame Beginner (33 reputation)
Group: Forum Members
Posts: 33, Visits: 64
Dustin,

I ran your sample and yours works exactly as I want it to.  I looked at your settings, and as far as I can tell, there is no difference with the exception that I am using C# instead ov VB.

I am attaching a screen shot of my settings for your amusement.

also, while we're not on the subject, is there any way to have a SF maint form default to Add mode when it is first instantiated?  A couple of forms that I have created, the user will almost always want to add new data via the form, and they do not want to have to click "New".  I know.... I know... users....  but what do you do with them...??

Thanks !

Doug

Attachments
settings.doc (290 views, 48.00 KB)
Edhy Rijo
E
StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)StrataFrame VIP (6.4K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Dough,

Thake a look at the sample posted by Greg here http://forum.strataframe.net/FindPost12693.aspx which has many of the things you are asking for.

Edhy Rijo

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Doug Birtell - 17 Years Ago
Dustin Taylor - 17 Years Ago
Doug Birtell - 17 Years Ago
Edhy Rijo - 17 Years Ago
                     Maybe in those cases you have use the Enter key? Just a guess...
Greg McGuffey - 17 Years Ago
                         Hi Greg, Sorry, but basically you can not move focus with the...
Edhy Rijo - 17 Years Ago
                             We'll take a look a this, but it sounds kindof fishy. This should not...
Trent L. Taylor - 17 Years Ago
                                 Trent, Dustin, No mean to rush you, but when you have a chance, see if...
Edhy Rijo - 17 Years Ago
                                     Got it and reproduced it. I will add this to the list. Thanks.
Trent L. Taylor - 17 Years Ago
                                         Hi Trent, Have you find a fix for this one?
Edhy Rijo - 16 Years Ago
                                             Not yet. I have it on my "cut sheet" but have not worked through this...
Trent L. Taylor - 16 Years Ago
                                                 Thanks for the info.
Edhy Rijo - 16 Years Ago
                                                 [quote][b]Trent L. Taylor (01/20/2009)[/b][hr]Not yet. I have it on my...
Edhy Rijo - 16 Years Ago
                                                     Sorry...this had a low priority since it was only documented in one...
Trent L. Taylor - 16 Years Ago
                                                         Thanks.
Edhy Rijo - 16 Years Ago
                                                             Trent,

FYI, setting the TabOrderController.EnterAdvances =...
Edhy Rijo - 16 Years Ago
                                                                 Forgot to mention that the problem is also happening with SF Textboxes...
Edhy Rijo - 16 Years Ago
                                                                     Edhy, I just set up a test and it worked. So you may need to produce...
Trent L. Taylor - 16 Years Ago
                                                                         Hi Trent,
Here is the sample posted by Dustin before, I modified...
Edhy Rijo - 16 Years Ago
                                                                             Fixed. It will be in the next update.
Trent L. Taylor - 16 Years Ago
                                                                                 Thanks Trent.

On a similar subject, I have a combo that in...
Edhy Rijo - 16 Years Ago
                                                                                     Well, first you would just need to bind the combo to the BO. Next, why...
Trent L. Taylor - 16 Years Ago
                                                                                         [quote][b]Trent L. Taylor (04/29/2009)[/b][hr]Well, first you would...
Edhy Rijo - 16 Years Ago
                                                                                             I'm not exactly which event you'd use (parent form loading maybe), but...
Greg McGuffey - 16 Years Ago
                                                                                                 Hi Greg,

Thanks a lot, that is exactly what I was looking...
Edhy Rijo - 16 Years Ago
                                                                                                     Glad that was it! :D
Greg McGuffey - 16 Years Ago
Dustin Taylor - 17 Years Ago
Doug Birtell - 17 Years Ago
Edhy Rijo - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search