Extjs Combo控件 下拉选择之后的事件触发

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:25   1469   0

combo控件的定义:

items: [
{
xtype: 'combo',
id: "cbdomain",
x: 60,
y: 10, //27
width: 120,
editable: false,
store:getAllDomainstore,
mode: 'remote',
valueFiled: 'domdesc',
displayField:'domdesc',
allowBlank: false,
enabled:false,
triggerAction: "all",
selectOnFocus : true,
forceSelection : true
}
]

添加select方法:

Ext.ComponentMgr.get("cbdomain").on('select',function (){
var domainValue = Ext.ComponentMgr.get("cbdomain").getValue();
var userName = Ext.ComponentMgr.get("cusername").getValue();

casestore.baseParams={
webAction:'getAllCases',
username:userName,
domain: domainValue,//Ext.ComponentMgr.get('cbdomain').getValue(),
phrase: Ext.ComponentMgr.get('phraseSearch').getValue(),
logicForm: Ext.ComponentMgr.get('logicformSearch').getValue(),
ignoreconflict:'true',
start: 0,
limit: 30
};

casestore.load();
});

分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP