1 Reply Latest reply on Apr 11, 2008 2:06 PM by justria

    Focusing a TextInput control

    flexsea
      Hi,

      I need to implement a component, which switches between show and edit state. Show state will be an Label control, while edit will be a TextInput control.

      While the controls switches, I fail to make the cursor appear inside the TextInput, once it appears. Neither TextInput.setFocus() nor 'TextInput.setSelection( 0, 1 );' do the trick.

      Does anybody know some magic here?

      Kind regards

      s