1
votes

I want to send all (inclduing unchanged) records of an Ext.data.store using the sync-method to the server.

In extjs4 you coud do the following (answer from this question):

store.each(function(record){
    record.setDirty();
});

store.sync();

But in extjs5 the setDirty()-method is deprecated, and I wasn't able to find an alternative solution.

2

2 Answers

0
votes

You could override getModifiedRecords to always return all store records.

0
votes

You could also add extra field into model, not stored anywhere, and change it before sync.