Ext version tested:
  • Ext 3.2 rev ____


Adapter used:
  • ext


css used:
  • only default ext-all.css




Browser versions tested against:
  • FF3 (firebug 1.3.0.10 installed)


Operating System:
  • Win7


Description:
  • When loading json data to a form with radiogroup and later checking isDirty, radiogroup is always returned dirty. It because originalValue is not set on radios inside group but only on group itself. When isDirty from checkboxgroup is called it checks isDrity for every radio, which is always true.


Test Case:

Code:
    <<insert working code to reproduce the report >>
See this URL : http://


Steps to reproduce the problem:
  • use form from samples
  • load json object into form



Debugging already done:
  • yes


Possible fix:
  • bellow is isDirty for raidogroup


Code:
	// private
    isDirty: function(){
        //override the behaviour to check sub items.
        if (this.disabled || !this.rendered) {
            return false;
        }

        var dirty = false;
		if (this.getValue().getRawValue() != this.originalValue.getRawValue()) {
			dirty = true;
		}
        return dirty;
    }