gridlocation = 0 'This needs to be set out side of onFocusChange
function onfocuschange
columnfocused= grid.itemfocused MOD grid.numColumns
If columnfocused >= gridlocation 'MOVE FORWARD
grid.jumpToItem= grid.itemFocused
gridlocation= gridlocation + 2
else if columnfocused < gridlocation and columnfocused < grid.itemUnfocused 'MOVE BACK
grid.jumpToItem= grid.itemFocused
gridlocation = gridlocation - 2
if gridlocation < 0 'CHECK TO MAKE SURE YOU DON'T MOVE OFF SCREEN
gridlocation = 0
end if
end if
end function
"user76" wrote:
Hi -- is there a field in the EPGGrid component that references the current item focused/selected? itemFocused only gives you the row but not the actual show in the row (e.g. if you are on row 1 and you press right to move to next timeslot show, there is no way to know that...). The best thing would be a field with a reference to the actual contentNode corresponding to the item focused/selected. If not, where can I get the index of which show is being focused/selected? Thanks in advance.
We’re upgrading Roku Community to bring you a faster, more mobile-friendly experience. You may notice limited functionality or read-only access during this time. Read more here.
Planned Downtime:
Community will be unavailable for up to 24–48 hours during the upgrade window during the week of May 19th and you may notice reduced functionality.
In the meantime, for additional assistance, visit our Support Site.
We're sorry for this disruption — we’re excited to share what’s next!