Support of pagination in smartGWT for ListGrid?

2019-02-10 15:49发布

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

2条回答
爷、活的狠高调
2楼-- · 2019-02-10 16:06

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.

查看更多
来,给爷笑一个
3楼-- · 2019-02-10 16:07

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"?
查看更多
登录 后发表回答