3 Replies Latest reply on Nov 27, 2006 1:52 PM by ntsiii

    repeater and checkboxes

    kimbflex Level 1
      Hello,

      I have a repeater with some checkboxes in it .....e.g:

      <mx:Tile x="60" y="0" width="366" height="208" id="recordsToPrint" tileWidth="300">
      <mx:Repeater id="rep" dataProvider="{print_r}">
      <mx:CheckBox selected="false" id="cb" click="printSelect(event)" label="{rep.currentItem.@r}" width="300"/>
      </mx:Repeater>
      </mx:Tile>

      And i need to reset all the checkboxes to unselected....e.g.

      var myCheck:Object;
      for (i=0;i<rep.numChildren;i++) {
      myCheck = rep.getChildAt(i);
      myCheck.selected = false;
      //also tried....
      cb .selected = false;
      }

      No errors although the ticks don't come off....

      The checkboxes are not using the dataProvider to set the selected state.

      How do I do this?

      kimb