Flex DataGrid reads a field from lastResult.node as number
        Posted  
        
            by Nemi
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Nemi
        
        
        
        Published on 2010-05-28T16:29:56Z
        Indexed on 
            2010/05/28
            16:31 UTC
        
        
        Read the original article
        Hit count: 288
        
Why Flex 3 DataGrid reads a string from XML lastResult.node as number?
A field is saved as var_char in mysql, php reads it as string and pass it OK. If there are more then 16 charaters it gets rounded....
For example: this in database cell: 12345678901234567 gets read in DataGrid as nubmer as 12345678901234568
this is in database cell: 5555544444222223333377777 php reads it same and puts it in XML flex reads XML into arrayCollection and DataGrid reads it as: 5.55554444422222e+24
So it reads it as number, why? And how to make it read as String?
I tried with labelFunction, no help.
© Stack Overflow or respective owner