ExtJs combobox模糊匹配


下拉列表模糊查询(重要代码):

listeners : {
    beforequery : function(e) {  
        var combo = e.combo;     
        if(!e.forceAll){     
            var value = e.query;     
            combo.store.filterBy(function(record, id){     
                var text = record.get(combo.displayField);     
                return (text.indexOf(value)!=-1);     
            });  
            combo.expand();     
            return false;     
        }  
    }  
},

转载自:http://yan578351314.iteye.com/blog/1562829


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM