Combobox三角下拉箭头的监听为 'focus'
,在点击下拉箭头时判断是否为空
先加载store
store.load();
将Combobox的加载模式设置为本地加载
combobox = new Ext.form.ComboBox( { store : store, mode : "local",//本地加载 }
监听
focus
用getCount()函数获取判断store是否为空listeners : { "focus" : function(){ if(store.getCount == 0) alert("Combobox值为空"); } }