Skip to content Skip to sidebar Skip to footer

Extjs 6 Access Messageproperty In Store Sync's Callback

I want to display a message from my server in the UI after synchronizing an ExtJS grid. Here's an excerpt of how that goes: this.store.sync({ callback: function (records, o

Solution 1:

In ExtJS 6 Sencha has changed the default value of keepRawData to false. If you change it back to true, everything should work as expected again. Sencha docs tell us that there is a chance of a memory leak, but I have not yet experienced such an issue.

Solution 2:

You may not have to change the default keepRawData value In ExtJS 6, you can also access the messageProperty from the operation parameter using:

operation.error;

or

operation.getError();

only problem is the error property is not set if the success parameter is true. In which case I guess they expect to you to use the records parameter since that is where the data from your server would be anyway.

Post a Comment for "Extjs 6 Access Messageproperty In Store Sync's Callback"