<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" >
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
public var myAC:ArrayCollection = new ArrayCollection
([
{item: 'product01', Status: 'New'},
{item: 'product01', Status: 'pending'},
{item: 'product01', Status: 'Active'},
{item: 'product01', Status: 'New'},
{item: 'product02', Status: 'New'},
{item: 'product02', Status: 'New'},
{item: 'product02', Status: 'Cancelled'},
{item: 'product02', Status: 'Cancelled'},
{item: 'product01', Status: 'Active'},
{item: 'product02', Status: 'pending'},
]);
]]>
</mx:Script>
<mx:Panel height="100%" width="100%"
paddingTop="10" paddingLeft="10" paddingRight="10">
<mx:HBox width="100%">
<mx:CheckBox label="product01 ()"/>
<mx:CheckBox label="product02 ()"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:CheckBox label="New ()"/>
<mx:CheckBox label="Active ()"/>
<mx:CheckBox label="pending ()"/>
<mx:CheckBox label="Cancelled ()"/>
</mx:HBox>
<mx:DataGrid id="myDataGrid" dataProvider="{myAC}" height="100%"/>
</mx:Panel>
</mx:Application>
|