I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure:
Array
[0]->Object #1
[one] => 1
[two] => 1
[three] => Object #2
[apple1] = > Object #3
[color] => red
[rate] => 20
[apple2] => Object #4 ( the number of apples is dynamic, apple3,apple4 .. and so on)
[color] => blue
[rate] => 100
and so on ... so the number of apple objects will vary since its dynamic. How do I display this data in a datagrid?
I saw many articles on creating the "Nested DataGridColumn " classes... like this :
http://active.tutsplus.com/tutorials/flex/working-with-the-flex-datagrid-and-nested-data-structures/
It helps, but the problem with my data is that some of the indexes (like apple1,apple2 etc.) are dynamic. How do I include those?