flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Samuel Facchinello <samuel...@gmail.com>
Subject Re: Rendering components in MX DataGrid
Date Tue, 04 Feb 2014 13:01:02 GMT
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 <olegkon@gmail.com>:

> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message