ExtJs4 combobox下拉选项框默认选中问题

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 17:25   2654   0
xtype : 'combobox',
id : 'combId',
fieldLabel : '职位',
store:....,
....
listeners : {
afterrender:function(){
if(this.store!=null){
Ext.getCmp('combId').setValue(this.store.getAt(0).get('job'));
}
if(Ext.getCmp('combId').getValue()!=null){ //当选中某一项时,触发的事件

},
select : function() {
//当选中某一项时,触发的事件
}
}
分享到 :
0 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

下载期权论坛手机APP