flex 3 using nested repeaters

Posted by ccdugga on Stack Overflow See other posts from Stack Overflow or by ccdugga
Published on 2009-03-16T16:49:52Z Indexed on 2010/04/03 6:03 UTC
Read the original article Hit count: 648

Filed under:
|

I'm trying to loop through a row of an arraycollection using nested repeater;

<mx:Repeater id="rp1" dataProvider="{arrayCollection}">
    <mx:Repeater id="rp2" dataProvider="{rp1.currentItem}">
        <mx:Button height="49" width="50" label="{rp2.currentItem.name}" /> 
    </mx:Repeater>
</mx:Repeater> 

What im trying to do is make the repeater loop through all the attributes in the currentRow, eg. name,age, address etc. At the moment all i do is call rp2.currentItem.name which explicitly calls out the name of the attribute and then the value is returned.

Is it possible instead of explicity naming the attribute to just loop through them all and dispplay button for each using the nested repeater?thanks

© Stack Overflow or respective owner

Related posts about flex3

Related posts about nested-repeater