下拉列表模糊查询(重要代码):
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
时间: 2024-10-10 06:44:23