Hi:
I have a problem with getting the list of all items of my editable local paging grid (After edit, of course). When i type:
Code:
listStore.getModels()
Only return the items that are shown on the current page of the grid. I need to get all the item at all the pages. (i dont know if i can get all complete list or i have to get one page-list at a time)
I am using this to implements the paging:
Code:
List<Facultad> res = new ArrayList<Facultad>();
PagingModelMemoryProxy proxy = new PagingModelMemoryProxy(res);
PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
ListStore<Facultad> listStore= new ListStore<Facultad>(loader);
PagingToolBar toolBar = new PagingToolBar(10);
.
.
.
(OTHER CODE)
.
.
.
//"resultado" is the list that i get from a RPC call to reload the grid
public void reloadGrid(List<Facultad> resultado) {
proxy = new PagingModelMemoryProxy(resultado);
loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
loader.setRemoteSort(true);
listStore= new ListStore<Facultad>(loader);
toolBar.bind(loader);
loader.load(0, 10);
grid.reconfigure(listStore, cm);
}
Thanks for your time!