Tag Archives: DataGrid

Using XML with DataGrid itemRenderers

For a recent project I needed a way to create a ComboBox in a DataGrid component that was populated by an XML file.   I found an older example by Brendan Meutzner that used an ArrayCollection. This was a good starting point, so I modified and added to the file to create an example that uses [...]
Posted in Flex | Also tagged , | 28 Comments

Binding XML to ComboBox using XMLListCollection

This post has been in serious need of updating since its one of my more popular posts, but the post is really outdated. Here is a new way to bind your data to a ComboBox and DataGrid by loading your XML document and converting it to an XMLListCollection. Update 9/15/2009 An easier way to convert [...]
Posted in AIR, Flex | Also tagged , , , , , | 18 Comments

Adding Drag-and-Drop & Drop Deny to DataGrid

I wanted to add a drag-and-drop UI element to a current project. What I wanted was to create two DataGrid components, side-by-side, one that I could drag  items from to create an ordered list of selected items in another DataGrid.  I also wanted to reorder the items in the second DataGrid to my liking.   The only restriction I had was that the [...]
Posted in Flex | Also tagged | 27 Comments

Binding Complex XML to a DataGrid in Flex (Redux)

Most binding examples work with a flat XML structure. However, in most cases the format of the data will not work directly with Flex components. I was looking for a way to bind complex XML to a DataGrid in Flex 2. I ran across a post by Brandon Purcell dealing with the same subject but [...]
Posted in Flex | Also tagged | 8 Comments