Pessoal estou com uma baita dor de cabeça com o maldito itemrender no flex4.
To passando certinho como em uns exemplos na net e nao funciona.

No flex3 eu fazia assim tambem era muito EASY e no flex 4 to tomando bola =(
alguem me ajuda por favor.

<mx:DataGrid width="744" height="468" paddingRight="2" id="ContratosDG"
fontFamily="Verdana" fontSize="10" >

<mx:columns>

<mx:DataGridColumn fontFamily="Verdana" itemRenderer="components.legend"
fontSize="10" fontWeight="bold" headerText="Status" width="40" dataField="
CSTATUS"/>

<mx:DataGridColumn fontFamily="Verdana" fontSize="10" fontWeight="bold"
headerText="Filial" width="40" dataField="FILIAL"/>

<mx:DataGridColumn fontFamily="Verdana" fontSize="10" fontWeight="bold"
headerText="Contrato" width="60" dataField="CONTRATO"/>

<mx:DataGridColumn fontFamily="Verdana" fontSize="10" fontWeight="bold"
headerText="Cliente" width="60" dataField="CODIGO"/>

<mx:DataGridColumn fontFamily="Verdana" fontSize="10" fontWeight="bold"
headerText="Nome" width="250" dataField="NOME"/>

<mx:DataGridColumn fontFamily="Verdana" fontSize="10" fontWeight="bold"
headerText="Tipo Contrato" width="80" dataField="TIPOCONTRA"/>

</mx:columns>

</mx:DataGrid>



Componente

<?xml version="1.0" encoding="utf-8"?>

<s:Group xmlns:fx="http://ns.adobe.com/mxml/2009";

xmlns:s="library://ns.adobe.com/flex/spark"

xmlns:mx="library://ns.adobe.com/flex/mx" width="400" height="300">

<fx:Declarations>

<!-- Place non-visual elements (e.g., services, value objects) here -->

</fx:Declarations>

<fx:Script>

<![CDATA[

*public* *var* nome:String = *new* String();

]]>

</fx:Script>

<mx:Image height="15" width="15" />

</s:Group>


-- 
*Hélio Antonio Fransico Silva*
Desenvolvedor web
Certificado Flash developer
Certificado Flash Design
Certificado web developer
Consultor Microsiga / Totvs
Desenvolvedor ADVPL / ASP
Analista de sistemas e ERP Sênior.

-- 
Você recebeu esta mensagem porque está inscrito na lista "flexdev"
Para enviar uma mensagem, envie um e-mail para flexdev@googlegroups.com
Para sair da lista, envie um email em branco para 
flexdev-unsubscr...@googlegroups.com
Mais opções estão disponíveis em http://groups.google.com/group/flexdev

Responder a