PDA

View Full Version : Chrome only MVC Grid refresh problem



Julia_Rakitina
21 Oct 2012, 12:18 PM
Good night :) I have problem only in Chrome with LiveSearchGridPanel. In my controller I just do simple create operation. But after creating new record Panel does not refresh :( I need my records on the top... In Mozilla it is ok. Here is my code. I`ve tried this Ext.getCmp('myGridID').getStore().load();
Ext.getCmp('myGridID').getView().refresh();
useless



createOrder: function(button) {
console.log('clicked the Save button Create');
var win = button.up('window'),
form = win.down('form'),
record = form.getRecord(),
values = form.getValues();


console.log(values);
this.getOrderStore().add(values);
win.close();
this.getOrderStore().sync();
this.getOrderStore().load();
}

mitchellsimoens
23 Oct 2012, 6:52 AM
You want it at the top, you can use insert instead of add on the store. I have not seen a grid get detached from the store it uses.