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.lo
-
If you want to get the data exactly like what you get by Writer
(for example ignoring fields with persist:false
config), use the following code (Note: I tested it in Ext 5.1)
var arr = [];
this.store.each(function (record) {
arr.push(this.store.getProxy().getWriter().getRecordData(record))
});
讨论(0)
-
Try this one line code it worked for me like charm:
var data = (store.getData().getSource() || store.getData()).getRange();
讨论(0)
-
Here is another simple clean way:
var jsonArr = [];
grid.getStore().each( function (model) {
jsonArr.push(model.data);
});
讨论(0)
- 热议问题