0 Replies Latest reply on Jul 24, 2007 2:09 AM by mouse jockey

    Using itemRenderer in dataGrid?

    mouse jockey Level 1
      I wish to restrict user input, to match database type, in a dataGrid.
      I have used an itemRenderer with the 'restrict' property set:

      <mx:itemRenderer>
      <mx:Component>
      <mx:TextInput restrict="0-9."/>
      </mx:Component>
      </mx:itemRenderer>

      to restrict user input to numeric input only.

      This does not work. But, if I use the 'restrict' property on a
      textInput outside the dataGrid it does.

      What am I doing wrong?