ExtJs: Search / Filter within a ComboBox

后端 未结 8 1325
甜味超标
甜味超标 2021-01-05 15:05

I\'ve the following problem / question in ExtJs 2.3:

I\'d like to do a search within a combobox. I\'ll give you an example:

Ext.comboData.names = [[\         


        
8条回答
  •  無奈伤痛
    2021-01-05 15:34

    You can use this approach also: provide a listener to combobox and catch this event:

     change: function() {
                            //debugger
                            var store = this.getStore();
                            store.clearFilter();
                            store.filter({
                                property: 'deviceName',//your property
                                anyMatch: true,
                                value   : this.getValue()
                            });
                        }
    

提交回复
热议问题