2011-05-16, 19:25
Greetings,
I'm looking to work a fixedlist such that, if the number of items is large (say 10+) then set the focussed position at 4, else leave it at 1.
I've tried a number of ways around this, using integerGreaterThan(Container.numItems,5) as the condition of an include (see below). No joy :-(
Any suggestions?
Cheers,
theDeadman.
I'm looking to work a fixedlist such that, if the number of items is large (say 10+) then set the focussed position at 4, else leave it at 1.
I've tried a number of ways around this, using integerGreaterThan(Container.numItems,5) as the condition of an include (see below). No joy :-(
Any suggestions?
Cheers,
theDeadman.
Code:
<control type="fixedlist" id="50">
<visible>!container.content(seasons) + !container.content(episodes)</visible>
<posx>col-1-start</posx>
<posy>row-10</posy>
<width>col-8-gutter</width>
<height>350</height>
<onup>9008</onup>
<onleft>9008</onleft>
<onright>9008</onright>
<include condition="IntegerGreaterThan(Container.numItems,5)"><focusposition>4</focusposition></include>
<movement>10</movement>
<ondown>50</ondown>
<scrolltime>200</scrolltime>
<viewtype>list</viewtype>
<itemlayout width="col-8-gutter" height="35">