AdvancedDataGrid with XML

This post was written by jimrobson on August 20, 2008
Posted Under: Flex

In a prior post I promised to provide some thoughts on the AdvancedDataGrid and XML. Well, that post was written about 4 months ago, and I’m finally delivering. I’ve put together a simple demo to show how the AdvancedDataGrid works with XML data:

Screen shot of AdvancedDataGridWithXML application
Each of the first three tabs works with a different XML file. Each of these files contains essentially the same data; the differences are in the way the data is structured. The fourth tab illustrates what appears to be an error in the Flex documentation.

If I try to explain the differences between the XML files, this will turn into a very long post. A code sample is worth a million words, so I’ll leave it to you to explore the demo (right-click on the demo to view and download the source). Let me know your thoughts, comments, corrections, questions, etc.

_______________________
Update

To take the next step with XML and the AdvancedDataGrid, and see some better coding practices, see this post.

Reader Comments

Strange…

Did you post a bug on JIRA?

- Jason

PS - Good to see you posting again my friend.

#1 
Written By Jason The Saj on August 20th, 2008 @ 2:46 pm

@Jason:

I don’t think it’s a bug; I think it’s just the facts of life regarding XML and the AdvancedDataGrid. I intended to mention that for most real-world applications, binding the XML directly to the grid is not the best way to go anyway. I hope to post more on that “soon”. :-)

I did send something in to LiveDocs about the apparent error there, but didn’t get a response.

#2 
Written By jimrobson on August 21st, 2008 @ 10:24 pm

Thanks a lot for this post, you really save me a lots of time. My XML structure problem was a shame!

Really usefull!

#3 
Written By Damien.D on April 2nd, 2009 @ 6:59 am

@Damien,

I’m glad it was useful - thanks for the encouragement!

#4 
Written By jimrobson on April 2nd, 2009 @ 9:08 am

Add a Comment

required, use real name
required, will not be published
optional, your blog address

Previous Post: A shameless plug