I have an ExtJs combo box. His store is loaded using JSON (using the MyStore class below). I want to load all the values ββinto the repository and then filter them with the text entered in the combo field (preferably using the typeAhead function).
The problem is that I want to do filtering on the client side (the combo mode property is 'remote', by default). I donβt want my combo to update my store every time I print something. How can i do this?
Thanks.
Here is my store class:
MyStore = Ext.extend(Ext.data.JsonStore, { constructor: function(jsonUrl, storeId, id, description, isAutoLoad, cfg) { cfg = cfg || {}; GenericStore.superclass.constructor.call(this, Ext.apply({ storeId: storeId, root: 'result', url: jsonUrl, autoLoad: isAutoLoad, fields: [ { name: id }, { name: description } ] }, cfg)); } });
And combos:
xtype: 'combo', fieldLabel: 'The Combo', width: 150, store: myStoreData, valueField: 'id', displayField: 'name', minChars : 0, editable : false, itemId : 'my-combo'
source share