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: 
kyleabaker
Visitor

roGridScreen selection logic

I'm displaying content in groups and am finding that my index is not matching what it should. If I have a grid screen layout with the following...

[_] [_] [_] [_] [_]
[_] [_] [_] [_] [_]
[_]
[_] [_] [_] [_]
[_] [_]

The index of A based on row and selection (rows/columns starting at 0) is ro...

0 Kudos
2 REPLIES 2
RokuMarkn
Visitor

Re: roGridScreen selection logic

Are you referring to the values in roGridScreenEvent? For isListItemSelected, GetIndex() returns the index of the row and GetData() returns the index of the column.

--Mark
0 Kudos
kyleabaker
Visitor

Re: roGridScreen selection logic

Just an update, my logic was correct, but the "content" list that I'd generated was incorrect, causing an out of bounds error. False alarm, haha.

Thanks for the help!
0 Kudos