proxy the check event from the child radio boxes to the radiogroup
This commit is contained in:
parent
c5a21e2be9
commit
2debe69e34
|
@ -750,6 +750,16 @@ Ext.reg('fullprogressbar', Ext.ux.FullProgressBar);
|
||||||
|
|
||||||
// Allow radiogroups to be treated as a single form element.
|
// Allow radiogroups to be treated as a single form element.
|
||||||
Ext.override(Ext.form.RadioGroup, {
|
Ext.override(Ext.form.RadioGroup, {
|
||||||
|
|
||||||
|
afterRender: function() {
|
||||||
|
var that = this;
|
||||||
|
this.items.each(function(i) {
|
||||||
|
that.relayEvents(i, ['check']);
|
||||||
|
});
|
||||||
|
|
||||||
|
Ext.form.RadioGroup.superclass.afterRender.call(this)
|
||||||
|
},
|
||||||
|
|
||||||
getName: function() {
|
getName: function() {
|
||||||
return this.items.first().getName();
|
return this.items.first().getName();
|
||||||
},
|
},
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue