问题
I have noticed after some research that smartGWT don't support pagination in the ListGrid
but only dynamic scroll. But if I really need pagination, how can I achieve this?
Let's say I want something like this with the "next" and "previous" buttons:
http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable
PS: This example is in GWT, what I want is something similar but in smartGWT
回答1:
I'm sorry that there is no Paging component in SmartGWT. But some nice guy has written a component called GridPager, which could meet your requirement, I think.
GridPager should works with ListGrid.
You can find the information of the component by googling.
There is also a discussion about the paging function of SmartGWT, I think it helps. The url is http://forums.smartclient.com/showthread.php?t=3103
GridPager is also mentioned in the discussion.
回答2:
If you want something "similar", not precisely the same, why don't you...
- Implement dynamic scroll
- Extend
ListGrid
and add two buttons wherever you want - Have the buttons scroll up/down as if those are the previous/next "pages"?
来源:https://stackoverflow.com/questions/9468486/support-of-pagination-in-smartgwt-for-listgrid