1 Reply Latest reply on Jan 23, 2010 1:20 PM by John Hall

    Repeater component data binding

    John Hall Level 4

      I have a repeater that repeats a custom component:

       

      <mx1:Repeater id="addressParts"

       

                                    dataProvider="{personPresentationModel.currentPerson.addresses}">

       

                          <components:Address left="144"

       

                                              top="1"

       

                                              enabled="{personPresentationModel.editMode}"/>

       

      </mx1:Repeater>

       

      visually it works fine however I'm trying to find out how to bind particular data of the dataprovider inside the repeated component. In other words, inside the repeated component, how could I do something along the lines of

       

          <s:TextInput text = "{myHostRepeater.dp.getItemAt(repeaterIndex)}"/>

       

      if that makes sense.

       

      thanks

        • 1. Re: Repeater component data binding
          John Hall Level 4

          As so often happens when I post a question, I figured it out immediately after submitting. I'd spent an hour on it and it's amazing how pressing

          the submit button so often unblocks my mind.

           

          Hey, maybe if we asked all world leaders to click submit buttons, do you think..... oh, never mind.