1 Reply Latest reply on Nov 20, 2009 12:22 AM by Subeesh Arakkan

    text input in datagrid

    simplesid Level 1

      I have a datagrid, i need a column which accepts only numerical data and maximum 12 characters.

      what i have done is

                     <mx:DataGridColumn id="limitAmount" dataField="amount" width="120"
                               headerRenderer="AmountHeaderRenderer"  >


                                      <mx:TextInput backgroundAlpha="0" width="100%" height="100%" maxChars="12" restrict="0-9" />

      The problem is that i am able to edit only one column of my datagrid (if i edit one row, all other rows become non editable automatically) and it does not store the value for that single row as well.

      One more thing is that, my data grid is dynamic i.e. i can add rows dynamically.

      Any help would be greatly appreciated.