PDA

View Full Version : Ext.form.comboBox triggerAction



dmstevenson
2 Mar 2010, 8:57 PM
I am using a simple comboBox with triggerAction: 'all' , however the comboBox still filters. It even filters in the examples page. The documentation says this will remove filtering, so why does it filter?

http://www.extjs.com/deploy/dev/examples/form/combos.html



var ds3 = new Ext.data.JsonStore({
url: 'getDivisions.php',
fields: [
{name: 'id_Divisions', type: 'int'},
{name: 'name_Divisions'}
]
});

new Ext.form.ComboBox({
plugins: [ Ext.ux.FieldLabeler ],
fieldLabel: 'Division',
hiddenName: 'id_Divisions_add',
valueField: 'id_Divisions',
mode: 'local',
triggerAction: 'all',
store: ds3,
displayField: 'name_Divisions'
})

Jack_S
2 Mar 2010, 10:30 PM
Just a shot in the dark, did you test this without the plugin ? Also, did you try setting typeAhead to false?

Animal
3 Mar 2010, 12:47 AM
In that examples page, you click the trigger, and it removes any filtering caused by typing, and shows the whole list of states.

dmstevenson
3 Mar 2010, 6:49 AM
Okay, It seems a little buggy though. If I click the state during the filtering, instead of clicking the trigger again right away, it can take many clicks to get the combobox to remove the filtering.