View Full Version : Viewport max shown items?

6 Oct 2011, 12:37 AM

Is it possible to set the max shown Items in a Viewport? I need this for a paging viewport. If its possible, can you tell me how?

greetings from Germany!

7 Oct 2011, 9:32 AM
The viewport itself doesn't have any concept of paging but there's nothing to stop you implementing this yourself. The way I'd probably do it is to use a card layout and add the relevant number of items to each card.


What's the motiviation behind using paging? If you're trying to conserve resources then my proposed solution won't really help as it still creates all the components (albeit lazily rendered). In that case you'd need to write the logic to add and remove all of the components for each page manually. I don't think it should be too much work, depends to some extent how you're determining what goes on each page.