I have a grid that I want to refresh. But when it refreshes, the fields in the table are not updated, fields are added to the end of the table. How can I make it so that the fields are only updated?
theStore.on('load', function () {
theStore.data.each(function(item, index, totalItems ) {
this.getStore().add({
type: 'Book',
night: item.data['author'],
day: item.data['price']
});
});
});