Gaurav_Malhotra
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2016
05:49 AM
Markup grid list column focused
hi,
I am using markup grid list in my roku app, in that list i have 3 columns in each row, i want user to focus only 2 columns i.e 2nd and 3rd column in each row.
The 1st column should not be focused and selected. Is this possible to achieve, if yes i would be very thankful.
Thanks
I am using markup grid list in my roku app, in that list i have 3 columns in each row, i want user to focus only 2 columns i.e 2nd and 3rd column in each row.
The 1st column should not be focused and selected. Is this possible to achieve, if yes i would be very thankful.
Thanks
2 REPLIES 2

RokuChristianL
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2016
10:30 AM
Re: Markup grid list column focused
Hi,
This can be achieved by setting an observer to itemFocused.
m.MarkupGrid.observeField("itemFocused", "BlockFocus")
Function BlockFocus()
if m.MarkupGrid.itemFocused mod 3 = 0 or if m.MarkupGrid.itemFocused mod 3 = 1 (This is the edge case to check for all rows-left column)
jumpToItem = m.MarkupGrid.ItemFocused + 1 (forces it back to previous item)
end if
end Function
This can be achieved by setting an observer to itemFocused.
m.MarkupGrid.observeField("itemFocused", "BlockFocus")
Function BlockFocus()
if m.MarkupGrid.itemFocused mod 3 = 0 or if m.MarkupGrid.itemFocused mod 3 = 1 (This is the edge case to check for all rows-left column)
jumpToItem = m.MarkupGrid.ItemFocused + 1 (forces it back to previous item)
end if
end Function
sheetaloza
Visitor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2016
05:50 AM
Re: Markup grid list column focused
I have a similar situation where I want to block the focus on middle item. I have 5 columns in my markupGrid and I want to block focus on 3rd item.
'THis works really well right key is pressed but fails when LEFT key is pressed.
if m.grid.itemFocused mod 5 = 2 then
m.grid.jumpToItem = m.grid.ItemFocused + 1
end if