change---顯示的值改變事件
select---選中選項事件
expand---下拉框展開事件
collapse--下拉框折疊事件
{
xtype: 'container',
width: 250,
margin: "3 0 0 5",
items: [
{
xtype: 'combobox',
flex: 1,
fieldLabel: '<span style="color:red;">*</span>期數',
labelAlign: 'right',
labelWidth: 100,
name: 'frepaylimit',
displayField: 's_name',
valueField: 's_value',
emptyText: '---請選擇---',
editable: false,
store: Ext.create('Ext.data.Store', {
fields: [
{
name: 's_name'
},
{
name: 's_value'
}
],
data: null
}),
validator: function (value) {
if (value.trim() == "") {
return "不能為空!"
}
return true;
},
listeners: {
'expand': function () {
var frepaylimit = me.down("*[name=frepaylimit]");
frepaylimit.clearValue();
var storefrepaylimit = frepaylimit.getStore();
var sel = parseInt(me.down("*[name=fproductid]").getValue());
//alert(sel);
switch (sel) {
case 14://精英貸
case 15://白領貸
storefrepaylimit.loadData(sqqs1);
break;
default:
storefrepaylimit.loadData(sqqs2);
break;
}
frepaylimit.focus();
}
}
}
]
}