Setting the Default Selection on a List


hi,

 

i've got list , selectedindex doesn't seem have effect.

 

i posted question on stack overflow, didn't reply.

 

i've got panel list , few radio buttons. i've set defaults on radio buttons, i'm having problems setting 2010 default selection in list.

 

<mx:list        id="mylist"          width="120"          height="80"         alternatingitemcolors="[0xffffff, 0xeeeeee]"         selectedindex="0">       <mx:dataprovider>             <mx:object label="2010" data="mydata1" />             <mx:object label="2009" data="mydata2" />             <mx:object label="2008" data="mydata3" />      </mx:dataprovider>  <mx:list>  

 

any suggestions? thank you.

 

-laxmidi

i tried adding: creationcomplete="mylist.selectedindex=0". but, didn't work, either.

 

-laxmidi



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい