Hi Jason - I was curious so I copied your code into a test app and it all seemed to work fine for me:
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Script> <![CDATA[ [Bindable] private var dummyData:Array = [{name:"One"}, {name:"Two"}, {name:"Three"}]; ]]> </mx:Script> <mx:Accordion width="400" height="300"> <mx:Canvas label="Option 1"> <mx:Button label="hi"/> </mx:Canvas> <mx:Canvas label="Tag Filters"> <mx:VBox width="300"> <mx:Repeater id="rSkills" dataProvider="{dummyData}" > <mx:Label text="test render"/> <mx:CheckBox id="CB1" label="{rSkills.currentItem.name}"/> </mx:Repeater> </mx:VBox> </mx:Canvas> <!--more MXML here--> </mx:Accordion> <mx:Panel width="400" height="300" x="400" y="300"> <mx:Canvas label="Group Filters" > <mx:VBox height="100%" width="100%"> <mx:Repeater id="rSkills2" dataProvider="{dummyData}" > <mx:Label text="test render"/> <mx:CheckBox id="CB2" label="{rSkills2.currentItem.name}"/> </mx:Repeater> </mx:VBox> </mx:Canvas> </mx:Panel> </mx:Application> --- In [email protected], "Merrill, Jason" <[EMAIL PROTECTED]> wrote: > > I've got two different repeaters in my flex app. One renders > checkboxes, one doesn't. The one that works is wrapped inside a canvas > in an accordian component, and the items don't render until that section > is clicked by the user. The second one is just rendering inside a > canvas on a panel. Seems the Flex app needs more time to grab the data > before rendering or something? > > This renders: > > <mx:Accordion width="400" height="300"> > <mx:Canvas label="Option 1"> > <mx:Button label="hi"/> > </mx:Canvas> > <mx:Canvas label="Tag Filters"> > <mx:VBox width="300"> > <mx:Repeater id="rSkills" > dataProvider="{_user.skills}" > > <mx:Label text="test render"/> > <mx:CheckBox id="CB1 > label="{rSkills.currentItem.name}"/> > </mx:Repeater> > </mx:VBox> > </mx:Canvas> > <!--more MXML here--> > </mx:Accordion> > > Does not render, even though the dp is the same: > > <mx:Panel width="400" height="300" x="400" y="300"> > <mx:Canvas label="Group Filters" > > <mx:VBox height="100%" width="100%"> > <mx:Repeater id="rSkills2" > dataProvider="{_user.skills}" > > <mx:Label text="test render"/> > <mx:CheckBox id="CB2 > label="{rSkills2.currentItem.name}"/> > </mx:Repeater> > </mx:VBox> > </mx:Canvas> > </mx:Panel> > > I have verified the dataProvider IS binded correct AND as I have done > above, I can even make the dataprovider the same for both, but the > renderer in the Panel still does not render. It's like it needs time to > grab the data or something - is there an event I can use to render the > checkboxes later? I use ApplicationComplete event to call Actionscript > and set my _user data class which creates the dataprovider data, maybe > I'm doing something out of order? Seems like that's what I need to do, > but I'm not sure. Have no idea why one renders and another doesn't, > even if they have the same dataprovider, other than the renderer needs > more time to get the data it needs or something. How do you order > things so data is first, UI second? > > Thanks, > > > Jason Merrill > Bank of America > GT&O L&LD Solutions Design & Development > eTools & Multimedia > > Bank of America Flash Platform Developer Community >

