It requires a custom renderer.  There is an example on my blog
http://blogs.adobe.com/aharui/2007/03/thinking_about_item_renderers_1.ht
ml

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of juris.vecvanags
Sent: Saturday, January 19, 2008 7:13 PM
To: [email protected]
Subject: [flexcoders] DataGrid htmlText not working, is it bug?

 

Hello!
Spent almost whole weekend trying to display html text (generated by
flex own RichText editor) withis DataGrid cell. Tried item renderes
Label, Text, TextArea, without any success. Coud it be a bug?
Text of course ir wrapped in CDATA, no errors, no warning from
compilator. Monday is deadline to release woring app to client, and i
still stuck without solution.. Any help would be greately appreciated!
Juris

Part of the code below:
<mx:DataGrid id="izsutitasVestulesGrid"
dataProvider="{nosutitieMeiliData}" variableRowHeight="true">
<mx:columns>
.
.
removed some lines..
.
. 
<mx:DataGridColumn headerText="submitedHTML text" dataField="vestule">
<mx:itemRenderer>
<mx:Component>
<mx:Text htmlText="{data.vestule}"/>
</mx:Component>
</mx:itemRenderer>
</mx:DataGridColumn>
<mx:DataGridColumn headerText="Nosutits" dataField="sent"
itemRenderer="Label" />
</mx:columns>
</mx:DataGrid>

 

Reply via email to