This works fine in 5.0.1 but breaks in 5.1.0. What happens is when a record is selected in a dataview and the store is refreshed, the DataView tries to reselect the record but has an exception because the store is null. This looks to be because the old store is deleted and the new one isn't set before trying to select:

Code:



updateStore: function(store) {
if (!this.isConfiguring) {


delete this.store;
this.bindStore(store);
}
},

Here is a Fiddle reproducing the problem. Select a row first then click the button and you'll see the indexOf error in the console.

http://ift.tt/1AvzAer