PDA

View Full Version : isDirty and saving changes



mjhaston
16 Aug 2011, 2:56 PM
See new, but related issue described below. I did a work around for my original post.

mjhaston
19 Aug 2011, 7:22 AM
I have an issue with isDirty and a radio group. If I load my radio group fields from a JSON response that loads the entire form ... the form gets marked as dirty. If I don't load the radio group then it's not marked as dirty until I make a change.



In my form I'm using these options:



monitorValid : true,
trackResetOnLoad : true,



My radio group is defined as such:




items : [{
xtype : 'radiogroup',
fieldLabel : 'Contact Type',
name : 'visit-type',
id : 'visit-type',
columns : [100, 100],
allowBlank : false,
items : [{
boxLabel : 'Visit',
name : 'visit-type',
inputValue : 'V'
}, {
boxLabel : 'Phone',
name : 'visit-type',
inputValue : 'P'
}]