Roku Developer Program

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

Can't scroll down in roGridScreen

Ok. I've got my roGridScreen displaying correctly (Thanks to RokuChris and TheEndless Smiley Happy ).
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
Level 7

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
Level 7

Re: Can't scroll down in roGridScreen

That's got it.

Thanks very much.

Dave
0 Kudos