1 Reply Latest reply on Jan 11, 2009 5:13 AM by Newsgroup_User

    I am trying to control visibility in Repeater but it always shown

    mordsm
      Hi,

      I am trying to control visibility in Repeater but it always shown

      <mx:Repeater id="r" dataProvider="{myXC}">
      <mx:RadioButton id="Radio" label="{r.currentItem.dayofweek}"
      visible="{r.currentItem.notsure}"
      width="150"/>
      </mx:Repeater>



      <day>
      <dayofweek>Sunday</dayofweek>
      <notsure>false</notsure>

      </day>
        • 1. Re: I am trying to control visibility in Repeater but it always shown
          Level 7

          "mordsm" <webforumsuser@macromedia.com> wrote in message
          news:gkc5le$2b2$1@forums.macromedia.com...
          > Hi,
          >
          > I am trying to control visibility in Repeater but it always shown
          >
          > <mx:Repeater id="r" dataProvider="{myXC}">
          > <mx:RadioButton id="Radio" label="{r.currentItem.dayofweek}"
          > visible="{r.currentItem.notsure}"
          > width="150"/>
          > </mx:Repeater>

          The value of notsure in your example is a string. Try

          visible = "{r.currentItem.notsure='true'?true:false}" includeInLayout =
          "{r.currentItem.notsure='true'?true:false}"