You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/06/24 23:12:21 UTC

[jira] [Updated] (FLEX-23746) NumericStepper as itemRenders in DataGrid don't work as expected with labelFunctions

     [ https://issues.apache.org/jira/browse/FLEX-23746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Mclean updated FLEX-23746:
---------------------------------

    Labels: easytest  (was: )
    
> NumericStepper as itemRenders in DataGrid don't work as expected with labelFunctions
> ------------------------------------------------------------------------------------
>
>                 Key: FLEX-23746
>                 URL: https://issues.apache.org/jira/browse/FLEX-23746
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Formatters
>    Affects Versions: Adobe Flex SDK 3.5 (Release)
>         Environment: Affected OS(s): All OS Platforms
> Affected OS(s): All OS Platforms
> Browser: Firefox 3.x
> Language Found: English
>            Reporter: Adobe JIRA
>              Labels: easytest
>
> Steps to reproduce:
> 1. Compile attached app
> 2. Run app
> 3. Enter "50000" (without quotes) as the new price of the item in the top datagrid by clicking in it, typing numbers and clicking outside DG again
> 4. Click the new formatted price
>  
>  Actual Results:
> item editor displays '50' in numeric stepper 
>  
>  Expected Results:
> item editor displays '50000' in numeric stepper 
> It appears the item editor gets the value to edit from the labelFunction not the dataProvider, and so is choking on the comma.
> This is unexpected.
>  
>  Workaround (if any):
> Replace labelFunction with simple itemRender, as in the second data grid
> <mx:DataGridColumn dataField="Price" editorDataField="value">
>                     <mx:itemRenderer>
>                             <mx:Component>
>                                     <mx:Label text="{outerDocument._moneyFormatter.format( data.Price )}"/>
>                             </mx:Component>
>                     </mx:itemRenderer>
>                 <mx:itemEditor>
>                     <mx:Component>
>                         <mx:NumericStepper stepSize="0.01" maximum="999999"/>
>                     </mx:Component>
>                 </mx:itemEditor>
>             </mx:DataGridColumn>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira