{
xtype: 'combo',
fieldLabel: "是否办理机电证",
id: 'contract_htbuild_ht_isBLJDZ',
hiddenName: 'IsBLJDZ',
readOnly: true,
style: 'background: url(Resources/images/pen.gif) no-repeat 3px center;padding-left:15px;',
store: new Ext.data.SimpleStore({
fields: ['value', 'text'],
data: [['0', "否"], ['1', "是"]
]
}),
valueField: 'value',
displayField: 'text',
emptyText: "--请选择--",
value: '0',
mode: 'local',
triggerAction: 'all',
lazyRender: true,
typeAhead: true,
selectOnFocus: true,
allowBlank: false,
width: mainFormLeftWidth - 40,
listeners: {
是否办理机电证变化后字段显示和隐藏控制
select: function (sender, record, index) {
var selectedValue = record.get('value');
}
}
},
extjs combo设置第一项被选中
最新推荐文章于 2020-10-20 17:48:24 发布