Hi.
Try this:
<mx:AdvancedDataGridColumn dataField="check"
headerText="Check"
minWidth="30">
<mx:itemRenderer>
<fx:Component>
<mx:HBox width="100%"
horizontalAlign="center">
<fx:Script>
<![CDATA[
protected function check_changeHandler(event:Event):void {
outerDocument.controller.functionTest(event);
}
override public function set data(value:Object):void {
super.data = value;
}
]]>
</fx:Script>
<mx:CheckBox change="check_changeHandler(event)"
selected="{data.check}"/>
</mx:HBox>
</fx:Component>
</mx:itemRenderer>
</mx:AdvancedDataGridColumn>
Att,
Samuel Facchinello
http://desenvolvendoemflex.blogspot.com
Joinville - SC
2014-02-04 Oleg Konovalov <[email protected]>:
> Hi,
>
>
>
> I have tried to add Spark Dropdown, MX Checkbox and a Button in MX DataGrid
>
> (as FX Component in itemRenderer). Neither of them had any data, I just
> needed to see them displayed,
>
> but none of them displayed. Why?
>
> Each of them displayed fine outside of DataGrid
>
> Am I missing something?
>
>
>
> Using Flex 4.5.1.
>
>
>
>
>
> TIA,
>
> Oleg.
>