The datagridcolumn needs dataField="rating"

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of max.bruchmann
Sent: Friday, May 30, 2008 3:12 AM
To: [email protected]
Subject: [flexcoders] data object in itemrenderer is null

 

Hi

I wrote a component based on the Image to use it as a itemRenderer for
a datagridcolumn. I created a datagrid and specified the itemRenderer.
but when I run it the "data" field of the Image stays null.

<mx:DataGrid id="dg" x="285" y="86"> 
<mx:dataProvider>
<mx:ArrayCollection>
<mx:Object>
<mx:rating>
1
</mx:rating>
</mx:Object>

</mx:ArrayCollection>
</mx:dataProvider>
<mx:columns>
<mx:DataGridColumn id="c1" headerText="R"
itemRenderer="path.to.my.imgcomponent"/>
</mx:columns>
</mx:DataGrid>

thanks in advance
max

 

Reply via email to