Extjs 从GXTGrid获取所有记录

Extjs 从GXTGrid获取所有记录,extjs,gxt,Extjs,Gxt,//我的网格 ListStore< PojoSurveyReportApproved> store = new ListStore< PojoSurveyReportApproved>(loader); List<ColumnConfig> configs = getSurvey(list); cm = new ColumnModel(configs); cp = new ContentPanel(); final Grid< Po

//我的网格

ListStore< PojoSurveyReportApproved> store = new ListStore< PojoSurveyReportApproved>(loader);  
List<ColumnConfig> configs = getSurvey(list);  
cm = new ColumnModel(configs);  
cp = new ContentPanel();    

final Grid< PojoSurveyReportApproved> grid = new Grid< PojoSurveyReportApproved>(store, cm);    
grid.setTitle("ddddddd");     
grid.setBorders(true);     
grid.getAriaSupport().setDescribedBy(toolBar.getId() + "-display");    
cp.removeAll();   
cp.add(grid);   
ListStorestore=newliststore(加载器);
列表配置=getSurvey(列表);
cm=新的列模型(配置);
cp=新的ContentPanel();
最终网格网格=新网格(存储,cm);
网格。设置标题(“DDD”);
网格。命令(真);
grid.getAriaSupport().setDescripteBy(toolBar.getId()+“-display”);
cp.removeAll();
cp.add(网格);
这是我的网格,动态加载。无论何时更改,都应检索网格中的所有记录,这样我就可以轻松地将其导出到Excel

我只想把网格中的所有记录作为一个数组或列表,是否有任何侦听器来处理它,或者以任何方式获取所有记录

我尝试了一些方法,将侦听器添加到存储中,但它不会给我结果

您尝试过吗-
store.getAll()


此代码获取网格中的所有记录并作为集合返回。但是,您可能需要使用另一个arrayList来使用存储值,具体取决于您的需要。

您是否可以更具体地@R.I.p,比如arrayList lis=store.getAll();这里我的商店是com.extjs.gxt.ui.client.store.ListStore;对于com.sencha.gxt.data.shared.listStore的listStore,代码如下:
List listFromStore=store.getAll()
您的商店应提供类似的服务。