1. #1
    Ext User
    Join Date
    Dec 2009
    Location
    USA
    Posts
    4
    Vote Rating
    0
    dmstevenson is on a distinguished road

      0  

    Default Ext.form.comboBox triggerAction

    Ext.form.comboBox triggerAction


    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/exam...rm/combos.html

    Code:
    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'
    		})

  2. #2
    Sencha User
    Join Date
    Apr 2008
    Posts
    330
    Vote Rating
    0
    Jack_S is on a distinguished road

      0  

    Default


    Just a shot in the dark, did you test this without the plugin ? Also, did you try setting typeAhead to false?

  3. #3
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,508
    Vote Rating
    57
    Animal has a spectacular aura about Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    In that examples page, you click the trigger, and it removes any filtering caused by typing, and shows the whole list of states.

  4. #4
    Ext User
    Join Date
    Dec 2009
    Location
    USA
    Posts
    4
    Vote Rating
    0
    dmstevenson is on a distinguished road

      0  

    Default


    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.

Thread Participants: 2