Posts Tagged ‘Datagrid’
- In: Actionscript 3.0 | AIR | Flash CS3 | Flex | Flex Components
- 2 Comments
The post is regarding a solution in case you have some numeric data with commas, which is going to be shown in a datagrid with sorting enabled. If you use the Array.NUMERIC as an option on the DataGridColumn.sortOptions with values having comma the results are not as desired. So what we have done is use the DataGridColumn.sortCompareFunction to use a custom sorting function and a toNumeric function to convert the comma separated data to Numeric values where as labels of datagrid remains same as with commas. Check the result below and you can download code from here
Recent Comments