View Full Version : Static Typeahead ComboBox

15 May 2008, 9:29 AM
I'm trying to create a ComboBox, where the list is loaded remotely. But, when doing typeahead, I don't want it to query the server every time. The list is only a 80 or so items long, so I would like to keep the typeahead client side.

Here is what I have so far:

new Ext.form.ComboBox({
store: new Ext.data.JsonStore({
url: 'ajax/components.json.php',
autoLoad: true,
root: 'data',
fields: ['Id', 'Title']
displayField: 'Title',
typeAhead: true,
forceSelection: true,
triggerAction: 'all',
emptyText: 'Select component to add...',
width: '14em',

Anyone know how to do that?

15 May 2008, 9:45 AM
Got it, needed mode:'local'