DeLe
DeLe

Reputation: 2480

Extjs Combo - type text header and it will be focus to select

I have 'xtype: combe' like http://jsfiddle.net/KYRhC/

{
        xtype        : 'combo',
        fieldLabel   : 'Letter',
        store        : mySimpleStore,
        displayField : 'name',
        typeAhead    : true,
        autoSelect: true,
        triggerAction:  'all',
        forceSelection: true,

        editable:       false,
        mode         : 'local'
    }

I want when i click to selectbox and type header of text and it will be focus to select example type d -> D will focus to select
I have option typeAhead : true, but not working.

Upvotes: 1

Views: 1014

Answers (1)

sra
sra

Reputation: 23983

You need to set

  1. editable: true
  2. minChars: 1

see here

Note that the search will ignore case so d and D is the same

As commented by @rixo

instead of mode which is deprecated, use queryMode to have the combo react really quickly.

Upvotes: 3

Related Questions