View Full Version : [CLOSED] [Possible bug?] Ext.form.field.comboBox auto complete cannot refresh automatically

30 Sep 2011, 12:41 AM
REQUIRED INFORMATION Ext version tested:

Ext 4.0.2

Browser versions tested against:

FF6.0.2 (firebug 1.8.3 installed)


Ext.form.field.comboBox - auto sggestion (auto complete) cannot refresh automatically

Steps to reproduce the problem:

(1) Input 'h', autosuggestion refresh, showing the correct suggestion list; then I select an item from the list.
(2) Delete the old input and input 'b', autosuggestion refresh, also showing the correct suggestion list; then I select an item from the list.
(3) Delete the old input and input 'b' again, and then I see the bug.

The result that was expected:

In (3), delete the old input and input 'b' again, autosuggestion should also refresh.

The result that occurs instead:

In (3), autosuggestion cannot refresh, and the store does not auto load either, showing the suggestion list in (2).

Test Case:

My data is defined as:

extend: 'Ext.data.Model',
fields: ['keyword','freq']

My store is defined as:

this.mySuggestStore = Ext.create('Ext.data.Store', {
model: 'mySuggestData',
proxy: {
type: 'ajax',
url : '/solr/search/select/?',
extraParams: {'wt':'json','facet':true,'q':'*:*','facet.field':'all_ac'},
actionMethods: {
read: 'POST'
reader: {
type: 'json',
root: certainfunction(),
autoLoad: true

My comboBox is defined as:

mySearchField = Ext.create('Ext.form.field.comboBox',{
id: 'mySearchField',
xtype: 'combo',
store: this.mySuggestStore,
queryParam: 'facet.prefix',
queryMode: 'remote',
tpl: '<tpl for="."><div class="x-boundlist-item" > {keyword}({freq}) </div></tpl>',
displayField: 'keyword',
valueField: 'keyword',
mode: 'remote',
minChars : 1,
typeAhead: true,
triggerAction: 'query',
enableKeyEvents: true,
allowBlank: false,
width: 100,
x: 100,
y: 20

Harmfulness of the bug:

I simplified the above test case, which may make the bug not so harmful. But the basic fact of the bug is: once the current input is the same with the previous one, the autosuggestion does not refresh. The bug is very hramful when the comboBox is dependent on other component. Assume a user makes a change in the other component, hoping the autosuggestion would change accordingly without typing another input in the comboBox, under which case the autosuggestion fails to refresh the suggestion lists.


Debugging already done:


Possible fix:

not provided

Additional CSS used:

only default ext-all.css

Operating System:


9 Oct 2011, 6:10 PM
Can anyone kindly look into this possible bug? Or it is not a bug but I don't know how to do the auto-suggestion, pls help me on this issue.

Thank you.

9 Oct 2011, 8:12 PM
See: http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.ComboBox-property-lastQuery

You can force it to requery, but it's not the default.

16 Nov 2011, 1:34 AM

lastQuery is the correction point to look into.