PDA

View Full Version : [OPEN] [4.0.6] BoundList emptyText doesn't appear to work



westy
21 Sep 2011, 1:55 AM
REQUIRED INFORMATIONExt version tested:

Ext 4.0.6
Browser versions tested against:

Chrome
DOCTYPE tested against:

Whatever you use on your docs pages
Description:

Setting emptyText in a combobox's listConfig doesn't appear to work. Originally tried on a remote store, but have verified on the example in the docs.
Steps to reproduce the problem:

Create a combobox that references an empty store. Give it a listConfig that specifies some emptyText.
The result that was expected:

I'm guessing the emptyText is meant to be displayed in the dropdown instead of the data?
The result that occurs instead:

Clicking the control appears to do nothing.
Test Case:
An updated version of your example (http://docs.sencha.com/ext-js/4-0/#!/api/Ext.form.field.ComboBox):

// The data store containing the list of states
var states = Ext.create('Ext.data.Store', {
fields: ['abbr', 'name'],
data : [
// {"abbr":"AL", "name":"Alabama"},
// {"abbr":"AK", "name":"Alaska"},
// {"abbr":"AZ", "name":"Arizona"}
//...
]
});


// Create the combo box, attached to the states data store
Ext.create('Ext.form.ComboBox', {
fieldLabel: 'Choose State',
store: states,
queryMode: 'local',
displayField: 'name',
valueField: 'abbr',
renderTo: Ext.getBody(),
listConfig: { emptyText: 'No states found!', deferEmptyText: true }
});



HELPFUL INFORMATION

Debugging already done:

none
Possible fix:

not provided
Additional CSS used:

Whatever is used on docs page
Operating System:

Windows 7 Pro 64-bit

mdlincoln
21 Sep 2011, 9:49 AM
We have confirmed this issue and created a bug report for it.

zenite5
14 Nov 2011, 5:13 AM
Hi,

I have the same problem even with version 4.0.7.

Could you tell me when this bug will be fixed?

Thank You !
Rodrigo Bortolon