Flex: generic checkbox item renderer

This is a VERY generic CheckBox item renderer to use in a DataGrid.
All you have to do is drop it in your DataGridColumn and it will take care of himself.
Only thing you need to make sure is the data it receives to be a Boolean.

You do not have to give it any data specific values (e.g. name of the dataField…).

Notice (#1) the implementation of IDropInListItemRenderer.
Notice (#2) the forced dispatching of a CollectionEvent.COLLECTION_CHANGE event, this is done to notify the data provider change.

p.s. This is part of another post I’ll post later about check boxes in data grid.

Demo is here (right click for source)
Source is here

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: