triggerAction:  'all',
enableKeyEvents : true,
mode: 'local',
forceSelection: true, 
selectOnFocus: true,
lastQuery: '', 

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

这些插入到 combobox 代码块中去
参考:

http://pingfan.iteye.com/blog/514163

http://blog.csdn.net/sjyingwei/article/details/8444382

更新于 阅读次数

请我喝[茶]~( ̄▽ ̄)~*

Jalen Chu 微信支付

微信支付

Jalen Chu 支付宝

支付宝

Jalen Chu 公众号

公众号