Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
crwecker
Visitor

RowList lazy loading

I am wanting to load images into a RowList in an efficient manner and have run into snags. I just saw this forum post but it didn't get into any details of why loading subsets of data didn't work and wanted to get some feedback on what I was thinking. 

I wanted to load the first few items (say 15) into each row of the RowList and then when the row gets focus I want to load another 15 items onto that row, then whenever they are 15 items from the end of the row I want to load another 15 until I've loaded them all.
The problem lies in that the rowItemFocus event only is fired when the user pauses in their scrolling, so if they push the button repeatedly it will wrap back around to the first item before it gets a chance to load any more. My two thoughts, that didn't bear any fruit, were
1. Finding some other event that fires when the user is scrolling
2. Turning off the wraparound ability of the rowlist until the full row is loaded, so that if they scroll quickly they get stuck for a second, the last item gets focus which triggers the rowItemFocus event and then when all items are loaded we turn the wraparound back on.

1. I couldn't find any other events that would work
2. I couldn't find a way to turn off the row wrapping back around to the first item.

Is there a solution to this? If not, what do you guys suggest for making the loading of items as seemless as possible?

-Carl Wecker
cwecker@vidangel.com
0 Kudos
2 REPLIES 2
crwecker
Visitor

Re: RowList lazy loading

I wasn't even thinking about users starting by going left. With that in mind, I agree that there isn't really a good way to do this without loading all the items for a row. I'll go ahead and abandon my attempt to load the items in chunks (: 
0 Kudos
joetesta
Roku Guru

Re: RowList lazy loading

it can be done, with various caveats depending on the method and components used.  I have lazy loading and pagination working in RSG apps.
aspiring
0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.