문제

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

도움이 되었습니까?

해결책

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.

다른 팁

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"?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top