# How to change the focused postion of MarkupList

**URL:** <https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [February 20, 2018, 11:18pm UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777 "2018-02-20T23:18:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flynt7111](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@flynt7111](https://forum.developer.roku.com/u/flynt7111)\
**Post date:** [February 20, 2018, 11:18pm UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/1 "2018-02-20T23:18:52Z")

</div>

Hi. In default setting, the MarkupList always focus on the top item in the list while the rest of the list item is rolling vertically.

Is the a way to set the focus position to the middle of the list instead?  
Example:  
Init state: A, B,  
Press down: B, C,  
Press down: C, D,

I have tried with all MarkupList properties on sdkdocs but no luck.

---

<div class="post-metadata">

**Author:** ![taylorcw](https://avatars.discourse-cdn.com/v4/letter/t/bcef8e/32.png) [@taylorcw](https://forum.developer.roku.com/u/taylorcw)\
**Post date:** [February 21, 2018, 5:42am UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/2 "2018-02-21T05:42:34Z")

</div>

Hey, you would use the jumpToItem. ( [https://sdkdocs.roku.com/display/sdkdoc/MarkupList](https://sdkdocs.roku.com/display/sdkdoc/MarkupList) )

m.markuplist = m.top.findNode("someField“)  
m.markuplist.content = some content data  
m.markuplist.jumpToItem = 2

Make sure the content data is given first. If you have to build the content list, use an observeField event, waiting for content.

---

<div class="post-metadata">

**Author:** ![flynt7111](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@flynt7111](https://forum.developer.roku.com/u/flynt7111)\
**Post date:** [February 21, 2018, 9:38pm UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/3 "2018-02-21T21:38:29Z")

</div>

Thanks @tarlorcw. But sorry, it’s not the answer for my case though. If you use the jumpToItem, that item will jump to the top of the list and get focused.  
What I expect is the focused item in the middle of the list instead on top.

I managed to found a work around solution by modifying the itemData ContentNode though.

---

<div class="post-metadata">

**Author:** ![Veeta](https://avatars.discourse-cdn.com/v4/letter/v/b5a626/32.png) [@Veeta](https://forum.developer.roku.com/u/Veeta)\
**Post date:** [February 22, 2018, 1:21pm UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/4 "2018-02-22T13:21:10Z")

</div>

See if ‘focusRow’ works for you. It’s documented in ArrayGrid which should be a basis for MarkupList.

---

<div class="post-metadata">

**Author:** ![norcaljohnny](https://avatars.discourse-cdn.com/v4/letter/n/59ef9b/32.png) [@norcaljohnny](https://forum.developer.roku.com/u/norcaljohnny)\
**Post date:** [February 23, 2018, 5:48am UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/5 "2018-02-23T05:48:31Z")

</div>

> “flynt7111” wrote:  
> Hi. In default setting, the MarkupList always focus on the top item in the list while the rest of the list item is rolling vertically.
> 
> Is the a way to set the focus position to the middle of the list instead?&nbsp;  
> Example:  
> Init state: &nbsp; &nbsp; &nbsp;A, B,  
> Press down: B, C,  
> Press down: C, D,
> 
> I have tried with all MarkupList properties on sdkdocs but no luck.  
> Do you mean something like this where it stays in the middle at all times…  
> numColumns=5  
> numRows=3  
> focusRow=1 //focus columns and rows index starts at 0  
> focusColumn=2  
> vertFocusAnimtationStyle=fixedFocus

or where it floats up and down the center…  
numColumns=5  
numRows=3  
focusColumn=2 //focus columns and rows index starts at 0  
vertFocusAnimtationStyle=floatingFocus

---

<div class="post-metadata">

**Author:** ![flynt7111](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@flynt7111](https://forum.developer.roku.com/u/flynt7111)\
**Post date:** [August 7, 2018, 10:19pm UTC](https://forum.developer.roku.com/t/how-to-change-the-focused-postion-of-markuplist/6777/6 "2018-08-07T22:19:41Z")

</div>

Thanks norcaljohnny.

Yeah, the first option is what I need. We need to add the “vertFocusAnimtationStyle=fixedFocus” to get this effect.[/font]
