javascript - ExtJS--typeAhead for combobox with queryMode "local"--cant query for substring -


i'm using ext 4.1.1

i have combobox typeahead enabled querymode:"local". works fine long query prefix of displayfield. nothing happens when query substring in display field.

{             xtype:"combo",             fieldlabel:"country",             name:"country",             itemid:"countryfilterfld",             labelpad:5,             typeahead:true             querymode:"local",                          valuefield:"id",                             displayfield:"label",                 store:store } 

for example, 1 of label's "united states". if start type in "united", "united states" gets filtered. if type "states", nothing happens @ all.

i tried listening comboboxes "change" event value , filter combobox store change event not fired.

listeners: {              change: function(cbo_) {     var store = cbo_.getstore();                     store.clearfilter();                       store.filter({         property: 'label',         anymatch: true,         value   : cbo_.getvalue()     })   } }, 

i setup breakpoint in change event handler event never fired, after no longer focused on field.

use anymatch on combo:

configure true allow matching of typed characters @ position in valuefield's value.

for example:

{         xtype: "combo",         fieldlabel: "country",         name: "country",         itemid: "countryfilterfld",         labelpad: 5,         typeahead: true         querymode: "local",                      valuefield: "id",                         displayfield: "label",         store: store,         anymatch: true } 

Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -