81,122
社区成员




Ext.override(Ext.form.BasicForm,{
findField : function(id){
var field = this.items.get(id);
if(!field){
this.items.each(function(f){
if(f.isXType('radiogroup')||f.isXType('checkboxgroup')){
f.items.each(function(c){
if(c.isFormField && (c.dataIndex == id || c.id == id || c.getName() == id)){
field = c;
return false;
}
});
}
if(f.isFormField && (f.dataIndex == id || f.id == id || f.getName() == id)){
field = f;
return false;
}
});
}
return field || null;
}
});
{xtype:'radiogroup',fieldLabel : "性别",name : 'sex',id: 'sex', anchor:'95%',columns: 2 ,items:
[{boxLabel: "男", name: 'sex',inputValue: 'M'},
{boxLabel: "女", name: 'sex',inputValue: 'F'}
]}