lumaflix
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2010
02:07 PM
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 ?
thanks.
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 ?
thanks.
1 REPLY 1

TheEndless
Channel Surfer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2010
02:16 PM
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: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)