How to retrieve JSON Data Array from ExtJS Store
Posted
by user291928
on Stack Overflow
See other posts from Stack Overflow
or by user291928
Published on 2010-03-26T21:08:39Z
Indexed on
2010/03/26
21:13 UTC
Read the original article
Hit count: 344
extjs
Is there a method allowing me to return my stored data in an ExtJS Grid Panel exactly the way I loaded it using:
var data = ["value1", "value2"]
Store.loadData(data);
I would like to have a user option to reload the Grid, but changes to the store need to be taken into account. The user can make changes and the grid is dynamically updated, but if I reload the grid, the data that was originally loaded is shown even though the database has been updated with the new changes. I would prefer not to reload the page and just let them reload the grid data itself with the newly changed store.
I guess im looking for something like this:
var data = Store.getData();
//data = ["value1", "value2"]
after its all said and done. Or is there a different way to refresh the grid with new data that I am not aware of. Even using the proxy still uses the "original" data, not the new store. Thanks in advance
© Stack Overflow or respective owner