Is there anybody working on the gwt-ext type of ListGrid with server side pagination (lazy loading)?
Because I have tried out the scrolling pagination with RestDataSource, it doesn't work for me because of some strange behaviors I met.
1. When I scroll to the bottom of ListGrid and submit my SearchForm criteria, the ListGrid call twice to my server, 1st to get the last page records, 2nd to get the first page records no matter how big I set for my PageSize.
2. When the ListGrid already loaded records 1-15, I removed record 10 and 11, then I scroll down to second page of the ListGrid to fetch the rest of the records 16-30, ListGrid only show records 16-28, because my totalRecord currently is 28 instead of 30, when I scroll to the top, the records 10 and 11 are still there.
I think that never happened when I used gwt-ext on my previous project.
Anyway, my system requirement is very simple, in order not to overload our server, we keep the page size small for the user, mostly 15 records per page. But somehow, I think ListGrid (e.g. live grid sample), is very difficult to behave in such a small PageSize.
Currently, I am trying to come out my own gwt-ext alike Grid lazy loading pagination based on the gridPager sample found in this Forum. The gridPager if I am not mistaken is a client based pagination, which we need to retrieve all the records at first load. The PagedGrid I am trying to develop is seems like not as straight forward as I think, because I need to take care not just the pagination alone, the sorting and searchForm or any other parameter criteria also need to be taken care of.
So, I am hoping maybe someone out there are working on this, and can give me a guideline or two, to let me know whether I am heading a right direction. Or simply there is a better and easier way to achieve my system requirement.
Thank you.
Because I have tried out the scrolling pagination with RestDataSource, it doesn't work for me because of some strange behaviors I met.
1. When I scroll to the bottom of ListGrid and submit my SearchForm criteria, the ListGrid call twice to my server, 1st to get the last page records, 2nd to get the first page records no matter how big I set for my PageSize.
2. When the ListGrid already loaded records 1-15, I removed record 10 and 11, then I scroll down to second page of the ListGrid to fetch the rest of the records 16-30, ListGrid only show records 16-28, because my totalRecord currently is 28 instead of 30, when I scroll to the top, the records 10 and 11 are still there.
I think that never happened when I used gwt-ext on my previous project.
Anyway, my system requirement is very simple, in order not to overload our server, we keep the page size small for the user, mostly 15 records per page. But somehow, I think ListGrid (e.g. live grid sample), is very difficult to behave in such a small PageSize.
Currently, I am trying to come out my own gwt-ext alike Grid lazy loading pagination based on the gridPager sample found in this Forum. The gridPager if I am not mistaken is a client based pagination, which we need to retrieve all the records at first load. The PagedGrid I am trying to develop is seems like not as straight forward as I think, because I need to take care not just the pagination alone, the sorting and searchForm or any other parameter criteria also need to be taken care of.
So, I am hoping maybe someone out there are working on this, and can give me a guideline or two, to let me know whether I am heading a right direction. Or simply there is a better and easier way to achieve my system requirement.
Thank you.
Comment