aspose file tools*
The moose likes GWT and the fly likes paging grids with filters dont work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "paging grids with filters dont work" Watch "paging grids with filters dont work" New topic
Author

paging grids with filters dont work

noemi conde
Greenhorn

Joined: May 05, 2010
Posts: 14
Hello everyone!

I'm newie in GXT, here is my problem: I am trying to implement a paging grid that also use filters.
Here is the code:



where "TestData.getCompanies()" gets the data 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.

I suppose I need to extend "PagingModelMemoryProxy" to support filtering (by overriding the load method), but I don't know how to do it.
Is this what I have to do ?

Any idea is welcome,

Thanks in advance !!!




 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: paging grids with filters dont work