View Full Version : Combobox always display all items

2 Aug 2012, 3:07 AM

What settings do I have to apply to the combobox so that all values gets displayed all the time when I open the combobox items?

I've tried with

triggerAction :'all',
disableKeyFilter: true,

listeners : {

beforequery : function(queryEvent,eOpts){
queryEvent.forceAll = true;

but no success.

Not sure if it's not a bug in the library.

I want to achieve the following:
1. to be able to type any text in the combobox
2. if the combobox is "expanded" then all the items should be displayed.

Thanks in advance.

2 Aug 2012, 2:58 PM
Something like "Disabling Typing" here http://skirtlesden.com/articles/extjs-comboboxes-part-1 ?

2 Aug 2012, 11:29 PM
Nice examples.

This seems to be as a bug in extjs4. I am using 4.1.1 GA.
I though triggerAction: 'all', should solve this but it's not doing it. Having tested this now in 4.0.1 and 4.1.0 it's working as it should. I'll open a bug.

Ext.create('Ext.form.field.ComboBox', {
store: ['Red', 'Yellow', 'Green', 'Brown', 'Blue', 'Pink', 'Black'],
triggerAction: 'all',
renderTo: Ext.getBody()

3 Aug 2012, 12:35 AM
triggerAction: 'all'is the answer. I had some overwriting of the combobox prototype which was causing my issues.