Forum Discussion
joetesta
12 years agoRoku Guru
"TheEndless" wrote:
If you have the full count in advance, then you can pass in a content list with "invalid" entries (just set contentlist[maxcount] = invalid), then in the onListItemFocused event, check for an invalid entry X number of entries to the left or right of current, and use that to trigger the load of the next page of results.
Thanks TheEndless - I'm back looking at this now and I'm a bit confused when you say "left or right"; since this is a grid screen isn't it really "down" where the invalid entries would be? Or do you load (and set the names for) every row and just load the items later?
I haven't tried yet but I was also wondering if I could load all the data into roku's memory and just set the rows as needed, or if I'd see the same issue (crashing) as when I tried to set all the rows. I need to experiment with this and wish there was a working example somewhere to start with. I just can't figure out how it should work in light of the crashing I was seeing with the whole grid loaded, and I'm thinking it must need to overwrite and use the same rows in memory to avoid this..?
thanks for any advice,
Joe