PDA

View Full Version : Auto Complete combobox on typing single character



extjslikeit
8 Jul 2010, 4:24 PM
The Ext.form.ComboBox can be used to support autocomplete - choices either form local or
remote data store that prefill a list under the edit area as you type.

But it seems it always start to do so after at least 4 characters are typed in.
The doc on Ext.form.ComboBox does not list any property to change this.

So, how can one start the autocomplete upon first character?
See example: http://www.sencha.com/deploy/dev/examples/form/forum-search.html (http://www.sencha.com/deploy/dev/examples/form/forum-search.html)

10 Jul 2010, 9:34 AM
the api has:


minChars : Number

The minimum number of characters the user must type before autocomplete and typeAhead activate (defaults to 4 if mode = 'remote' or 0 if mode = 'local', does not apply if editable = false).