I'm new in GXT and in posting in forums, so I hope I am writing in the right place. My problem is that I am trying to implement a paging grid that also use filters. To implement the paging grid, I am using this source code:
PagingModelMemoryProxy proxy =
final PagingLoader<PagingLoadResult<ModelData>> loader = new BasePagingLoader<PagingLoadResult<ModelData>>(proxy);
listStore = new ListStore<Company>(loader);
bottomToolBar = new PagingToolBar(10);
grid = new Grid<Company>(listStore, cm);
where "TestData.getCompanies()" gets the data that are displayed in the grid, and "cm" is the ColumnModel with the configuration for the columns. That is working fine. My problem is that I have a combo to filter the grid. After select a value in the combo, I want to reload the whole grid, and shows only the results filtered. But I want to filter the whole set of data, and not only the data which is in the current page you are looking at. I don't know if I am explaining my situation well... But I would like to update also the number of pages showed.
For example, I have 3000 companies, 1500 of them are from "Italy" and the others 1500 are from "Poland". My grid shows a total of 300 pages. If I am watching one of the pages that only shows companies from "Poland" and I filter "Italy", that page of the grid is empty of data, and the count of pages is still 300 when it would have to reload and only shows 150 pages with the companies that are from "Italy".
I would be very grateful if somebody has any idea. Thank you so much and sorry if my English or my explanation is not very good.