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

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
How do you have yours set up? I did a quick test, and it seems to work for me. I have the autocomplete properties set as:

AutoCompleteMode: Append

AutoCompleteSource: ListItems

I used it for cities in the StrataFrame sample DB. If I type in "A" it suggests abingdon, if I wait several seconds and type in an "l" it switches to "albany".

How do you have your combo box set up currently?

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 the settings as you do.  Also I have tried DropDownStyle property in all 3 configurations.

Is it possible that this component spawns a thread that has a timer on it that resets keyboard input after a certain period?

I guess my users will just have to learn to type fast. Smile

Dustin Taylor
Dustin Taylor
StrataFrame Team Member (652 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 (342 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 (269 views, 48.00 KB)
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K 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

Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Dustin,

I am having a problem with a combobox and the TabOrderController, when the combo has the following properties setup as follow:

AutoCompleteMode: Append or SuggestAppend

AutoCompleteSource: ListItems

If you try to tab to the next control, then the cursor will not move from the combobox object, if those properties are set to None, then the tab order works as expected.

Edhy Rijo

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.3K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Maybe in those cases you have use the Enter key? Just a guess...
Edhy Rijo
E
StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)StrataFrame VIP (4.6K reputation)
Group: StrataFrame Users
Posts: 2.4K, Visits: 23K
Hi Greg,

Sorry, but basically you can not move focus with the keyboard.  I modified Dustin's sample to include a TabOrderController to show the problem. 

Edhy Rijo

Attachments
AutoCompleteTest.zip (254 views, 751.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
We'll take a look a this, but it sounds kindof fishy.  This should not have an impact on the tab controller.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search