1 Reply Latest reply on Dec 3, 2009 3:23 AM by Subeesh Arakkan

    List with checkbox

    ric_bia

      Is it possible to create a list with on every row a checkbox and a name?

      And do something linked with which checkboxes are selected in which not.

        • 1. Re: List with checkbox
          Subeesh Arakkan Level 4

          Hi,

           

          Use Itemrenderer

           

              <mx:List labelField="title">
                  <mx:dataProvider>
                      <mx:Array>
                          <mx:Object title='Test' selected="true"/>
                          <mx:Object title='Test2' selected="false"/>
                          <mx:Object title='Test3' selected="true"/>
                       </mx:Array>
                  </mx:dataProvider>
                  <mx:itemRenderer>
                      <mx:Component>
                          <mx:CheckBox selected="{data.selected}"/>
                      </mx:Component>
                  </mx:itemRenderer>
              </mx:List>

          1 person found this helpful