extjs combobox 事件


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();
}
}
}
]
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM