我现在定义了一个form然后在 form里面有定义了一些其他的东东包括一些textfield ,combobox等现在我定义了一组radio这样定义的
this.hello= new Ext.form.FieldSet({
title : 'hah1',
id :'hah1'
});this.timeType= {
xtype : 'radiogroup',
// fieldLabel : '时间类型',
itemCls : 'x-check-group-alt',
width : 50,
columns : 1,
items : [ {
boxLabel : '按天',
label:'按天',
name : 'ssTimeType',
inputValue : 0,
checked : true,
listeners : checkTimeType
}, {
boxLabel : '按周',
name : 'ssTimeType',
inputValue : 1,
listeners : checkTimeType
}, {
boxLabel : '按月',
name : 'ssTimeType',
inputValue : 2,
listeners : checkTimeType
} ]
};
然后定义了监听方法
var checkTimeType = {
"check" : function(radioGroup, checked ) {
if (checked)
 if(radioGroup.inputValue == '2'){
 alert(Ext.getCmp("hello").getId());
 }
}
};
这个时候没办法通过Ext.getCmp("hello")来获取hello对象我想问一下怎么修改一下能把我的form当成参数可以在checkTimeType 里面调用,
比如通过 form.hello就能得到hello组件对象
急 我是刚开始接触ext,现在项目太紧了没时间去一个挨着一个研究 希望大家帮帮忙