Tagged "FlexSDK"

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. Instead of: 1 - 2 - 3 - 4 - 11 - 12 -21

ScrollToIndex doesn't work when dataprovider has just been updated

I experienced a problem with a datagrid where I tried to use a scrollToIndex. This was the necessary workflow: load a xml from a webservice and place the result in a datagrid select an item from the datagrid change it in a seperate panel + save reload the webservice and replace the content of the datagrid with the new xml set the selectedIndex and scrollToIndex to the row which was updated The selectedIndex worked, the scrollToIndex not.