ExtJs中Combo组件默认选中

{
        xtype: 'commonTypeCombo',
        name: 'companyCode',
        reference: 'companyCode',
        fieldLabel: bizI18n_hr.hrMdMat.companyCode,
        typeId: 'HR_COMP_CODE',
        allowBlank: true,
        listeners: {
                render:function (combo) {
                        combo.getStore().on('load',function (store, record) {
                                combo.setValue(record[0].get('typeId'))
                        })
                }
        }
}

猜你喜欢

转载自blog.51cto.com/11147669/2475501