Support of pagination in smartGWT for ListGrid?

微笑、不失礼 提交于 2019-11-30 15:53:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!