Had a similar issue. The trick is to use {index of currentItem} and not
currentIndex, as currentIdex will fail when used with your secondary data
source.
Try this (just an example):
Assumes your have
* "dp1" -> your primary data source (collection)
* "dp2" -> your secondary data source (collection)
<mx:Repeater id="theRepeater" dataProvider="{dp1}">
<mx:Panel id="thePanel" label="{dp2.getItemAt(
dp1.getItemIndex(theRepeater.currentItem ) )}">
<mx:Text text="{theRepeater.currentItem}" />
</mx:Panel>
</mx:Repeater>
Hope that helps.
=) Mike
_____
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of jitendra jain
Sent: Thursday, August 28, 2008 1:30 PM
To: flex group flex
Subject: [flexcoders] Repeater Component
Hi friends,
I have one repeater component that dynamically constructs a Check box and
two input boxes using a masterDataProvider(array collection). Now i have
another data provider childDataProvider(array collection). How can i assign
values of childDataProvider to repeater ?? Please help.
Thanks,
with Regards,
Jitendra Jain
Software Engineer
91-9979960798