1 Reply Latest reply on Dec 7, 2007 8:51 AM by AwesomeDigital3

    First Item In A Repeater

    AwesomeDigital3 Level 1
      I have a repeater and I can get the reference to that
      What I want to do is set the focus on the first checkbox within the repeater
      The id of the checkbox is called theCheckbox

      So I thought this should work, but it does not

      oTheRepeater[0].theCheckBox.setFocus();

      But my guess was worng.


        • 1. Re: First Item In A Repeater
          AwesomeDigital3 Level 1
          Never mind, I figured it out.
          As usual, right after I posted.

          I don't need to refrence the repeater at all, but the item in the repeater directly.

          theCheckBox[0].setFocus();


          That works, but unfortunately that leaves me with another bug I found earlier. The first check box does have the focus, but there is no glow around the item to indicate that.

          If I hit tab, the focus moves to the second box (which does glow)

          Oh well.