Roku Developer Program

Developers and content creators—a complete solution for growing an audience directly.
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 7

pagination on grid

Hi roku dev,

some of the forums talks about youtube example for pagination, there is no youtube example in sdk bundle.
Am working on the videoplayer example to integrate the grid example.
If the count goes above 50, its taking a long time to load all the items from the xml
Can you provide some code or a sample example on how to do pagination on grid style ?

0 Kudos
1 REPLY 1\
Level 9

Re: pagination on grid

I haven't had a chance to try it out, yet, but the SetContentListSubset() method appears to be what you're looking for. I'm pretty sure you'd use that to load your initial page, then call it again for additional pages based on the isListItemFocused() event's Index (i.e, load page one with items 1-20 initially, then load page two with items 21-40 when isListItemFocused() >= 15).
My Channels: - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
0 Kudos