Sorting numeric values in a Flex DataGrid
When loading data from a webservice to be shown in a datagrid it seemed that all values in the grid are treated as string-values. So when sorting numeric columns the values were not in the correct order.
The Flex SDK was Adobe’s framework for building rich internet applications using ActionScript and MXML. These posts reflect on Flex development experiences, migration strategies, and lessons learned from the Flash/Flex era.
When loading data from a webservice to be shown in a datagrid it seemed that all values in the grid are treated as string-values. So when sorting numeric columns the values were not in the correct order.
I experienced a problem with a datagrid where I tried to use a scrollToIndex. This was the necessary workflow: