添加和删除record是不会写入modified的,只有编辑的才会。
就你那个例子里面,监听add和remove事件就ok了.
Store
add : ( Store this, Ext.data.Record[] records, Number index )
Fires when Records have been added to the Store
Listeners will be called with the following arguments:
this : Store
records : Ext.data.Record[] The array of Records added
index : Number The index at which the record(s) were added
remove : ( Store this, Ext.data.Record record, Number index )
Fires when a Record has been removed from the Store
Listeners will be called with the following arguments:
this : Store
record : Ext.data.Record The Record that was removed
index : Number The index at which the record was removed