I have an xml file providing data for a datagrid in Flex 2 that includes an unformatted Price field (ie: it is just a number). Can anyone tell me how I take that datafield and format it – add a currency symbol, put in thousand separators etc. Thanks. S.
Share
As stated above an easy way to do this would be to add a labelFunction to the specified column and format the data within there.
Frequently I find that its much easier to work with objects then straight XML so normally if I am receiving XML from a function I would create an object and parser for that XML and you can format the data inside the parser also if you like.
Another way to handle this would be inside an itemRenderer. Example: