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

 
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() {
//当选中某一项时,触发的事件
}
}  

你可能感兴趣的:(combobox)