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: 
vaxace
Binge Watcher

Can't scroll down in roGridScreen

Ok. I've got my roGridScreen displaying correctly (Thanks to RokuChris and TheEndless 🙂 ).
One problem remaining: I can't scroll down to any row below the top one (there are 10).

Ideas?

Thanks,
Dave
0 Kudos
4 REPLIES 4
RokuChris
Roku Employee
Roku Employee

Re: Can't scroll down in roGridScreen

A few possible causes:
  • Calling SetListNames() before SetupLists()

  • Not calling SetListNames() at all

  • Calling SetListNames() with an array whose length does not match the number of rows you specified in the call to SetupLists()


The grid is kind of picky about the order you do things in. It needs to be SetupLists(), SetListNames(), then Show()
0 Kudos
vaxace
Binge Watcher

Re: Can't scroll down in roGridScreen

Actually, I call SetupLists() and then call SetListName() inside my init loop.
Is that not a correct usage?

Thanks,
D.
0 Kudos
RokuChris
Roku Employee
Roku Employee

Re: Can't scroll down in roGridScreen

"vaxace" wrote:
Actually, I call SetupLists() and then call SetListName() inside my init loop.
Is that not a correct usage?


I've never done it that way. The best practice is to use SetListNames() when setting up the screen. SetListName() can be used to change individual row names later on. You can probably still make your approach work by adding a call to SetListNames() with an array of empty strings before you start your loop.
0 Kudos
vaxace
Binge Watcher

Re: Can't scroll down in roGridScreen

That's got it.

Thanks very much.

Dave
0 Kudos