给items中的item指定ID
隐藏
Ext.getCmp('ID').setVisible(true);
显示
Ext.getCmp('ID').setVisible(false);
实例
var cust_type = ({ xtype: 'radiogroup', fieldLabel: '客户类型', id:'cust_type', hidden : true, items: [ {boxLabel: '个人', name: 'cust_type',id: 'cust_type_0', inputValue: 0,checked: true}, {boxLabel: '单位', name: 'cust_type',id: 'cust_type_1', inputValue: 1} ] }); Ext.getCmp('cust_type_1').setVisible(true);