proxy the check event from the child radio boxes to the radiogroup

This commit is contained in:
Damien Churchill 2009-06-23 23:18:25 +00:00
parent c5a21e2be9
commit 2debe69e34
2 changed files with 11 additions and 1 deletions

View File

@ -750,6 +750,16 @@ Ext.reg('fullprogressbar', Ext.ux.FullProgressBar);
// Allow radiogroups to be treated as a single form element.
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() {
return this.items.first().getName();
},

File diff suppressed because one or more lines are too long