You can call getItemIndex if you want

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of bmilesp
Sent: Tuesday, December 18, 2007 7:18 PM
To: [email protected]
Subject: [flexcoders] itemrenderer dataprovider index?

 

greetings!

I have an mx:List with an itemrenderer that renders a custom 
component using a dataprovider. i want to get the rendered item index 
(or current dataprovider index?) of each custom component in the 
list. 

or even just an incrementing number inside of the component would 
work. 

so I wish to write something like: 

<p:custom_component dataProvider="{data}" 
value="{outerDocument.dataModel.dataVal[i]}">

"i" being the current index of the rendered item

Any Clues? thanks everyone!

 

Reply via email to