Refreshing a Grid using static data
I using a grid to display a static data Array, and I am adding/removing data from this array. I can update the store used by the grid correctly, but the grid itself doesn't refresh. Any suggestions?
Thanks Ash2009, that works perfectly.
Now I have another problem. Deleting a record from a store. I am using myGrid.store.removeAt(i), being i my index, but it doesn't work.
I have used remove() at all places,it works fine.
var sel = grid.getSelectionModel().getSelected();
Thanks for the help Ash2009, but I am using ExtJS 2.2 and maybe that's why some methods doesn't work. Exemple, getSelected() doesn't work. However I found a way to do what I wanted, by adding a .data in front of store. So it looks like myGrid.store.data.remove(index).