1 Reply Latest reply on Mar 16, 2010 3:35 PM by Flex harUI

    DataGrid, e4x format, and sorting

    egmendez

      Hi there,

       

      I have an Http service "<s:HTTPService ... resultFormat="e4x" >" that return XML as you can tell by the 'e4x'.

      Let's assume I get something back like: "<rows><name>joe</name><age>20</age>....<name>mike</name><age>11</age></rows>".

      Results are bind to a DataGrid. Data displays beautifully but sorting is a problem.

      How do I specify during the definition of the DataGrid that "<age>" is to be treated as a numeric value so it should be sorted as such?

      I see that the doc indicates that the DataGrid can sort either numerically or alphabetically but I cannot find a way to indicate that a

      given field is a "numeric" value.


      Regards,

       

      egm