Autocomplete text field with ExtJs

How can I encode a simple autocomplete function using ExtJs? If the field has an address, and they start typing st , it should become a street, etc.

+4
source share
3 answers

As Mitch points out in his comment, you can use Ext.form.Combobox, properly configured, for this. You do not need to bind anything to the keyup event, as Combobox will handle this for you.

This is where the configuration starts that should work. You need to provide the appropriate Ext.data.Store file (or its subclass), as well as several other configuration values ​​(displayField, valueField, queryParam, etc.). All necessary materials are well documented in API documents)

 MyTypeahead = new Ext.form.ComboBox({ triggerAction:'all', typeAhead:true, mode:'remote', minChars:2, forceSelection:true, hideTrigger:true }); 
+14
source

Here is an example that they have, they call it " live search ".

+12
source

ExtJS: how to make combobox execute "Contains" / LIKE search see this

0
source

All Articles