Results 1 to 4 of 4

Thread: Ext.form.comboBox triggerAction

  1. #1
    Ext User
    Join Date
    Dec 2009
    Location
    USA
    Posts
    4
    Vote Rating
    0
      0  

    Default 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
      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
    Bédoin/Redwood City
    Posts
    30,626
    Vote Rating
    56
      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.
    Longtime Sencha geek. Outspoken advocate of pure Javascript Views. Posts my own opinions.

  4. #4
    Ext User
    Join Date
    Dec 2009
    Location
    USA
    Posts
    4
    Vote Rating
    0
      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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •