Archive

Posts Tagged ‘DataGroup’

Simple wave effect on items in a DataGroup

April 11th, 2010 1 comment

This post demonstrates one way of creating a simple wave effect on items in a DataGroup. A post on polyGeek.com reminded me of an old sample I had laying around that was kind of interesting.
Read more…

Learn how to create a simple virtual layout in Flex 4

March 6th, 2010 11 comments

This post goes over the basics of writing a very simple custom layout that supports virtualization in spark. It assumes that you have already built a custom layout that handles the real (non-virtual) case and are comfortable doing so.
Read more…

Binding warnings when using Object in a List dataProvider

November 11th, 2009 6 comments

If you have built a custom item renderer for a DataGroup or List you may have come across warnings in your Flash Builder console output similar to this:

warning: unable to bind to property 'firstName' on class 'Object' (class is not an IEventDispatcher)

Read more…

Different ways of assigning an item renderer in Flex 4

November 2nd, 2009 5 comments

This post looks at a couple ways of defining a custom item renderer on a DataGroup, but it also applies the same way to a SkinnableDataContainer, spark List, and any other spark components that support item rendering.
Read more…

Deleting items in a List from an item renderer

September 23rd, 2009 1 comment

It’s easy to delete an item in a spark List from within an item renderer. This is handy if you have a List with a custom renderer that provides a button to delete the item that is associated with that renderer.
Read more…

Expanding item renderers in a DataGroup or List

July 18th, 2009 No comments

The spark DataGroup component is designed to take data items and pass them through an item renderer to create a visual representation of that data. In Flex 4 it is very easy to build custom item renderers.

This sample application demonstrates how you can create an item renderer that only shows some information by default and allows the user to drill down to see more information by clicking on an item or it’s associated “twisty” icon.

Read more…

Introduction to the DataGroup Component in Flex 4

June 17th, 2009 No comments

DataGroup is a new component introduced in Flex 4 that is responsible for turning data items like Strings and Objects into visual elements. The process of turning boring old data items into a visual representation is called item rendering. DataGroup is the lightest weight component that deals with item rendering. It has no skin and no concept of selection. A SkinnableDataContainer is exactly the same as a DataGroup except it has a skin and a List provides selection functionality.
Read more…