Flexcomps’s Weblog

Posts Tagged ‘Datagrid column

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

AS3 Datagrid sorting

AS3 Datagrid sorting


May 2024
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
2728293031  

Blog Stats

  • 326,382 hits