Hi Manish,
I'm using the cellrenderer & importing the images. let me paste my
code snippet.
<mx:Model source="PRODRUNS.xml" id="model4"></mx:Model>
<mx:DataGrid id="dgProdRuns" dataProvider="{model4.PRODRUN}">
<mx:columns>
<mx:Array>
<mx:DataGridColumn headerText="Order" columnName="ORDER" />
<mx:DataGridColumn cellRenderer="tick_comp" />
<mx:DataGridColumn headerText="Start" columnName="START" />
<mx:DataGridColumn headerText="End" columnName="END" />
<mx:DataGridColumn headerText="Zone" columnName="ZONE" />
<mx:DataGridColumn headerText="Qty" columnName="QTY" />
</mx:Array>
</mx:columns>
</mx:DataGrid>
as you can see,in the second column i'm using the cellrenderer
which calls a mxml component "tick_comp". my idea is that i want to
use two different mxml component, based on the value of the node
status, which comes from a xml file.
so i have to call a function in which i can fill the cellrenderer
property dynamically, depending on the value of the node status.
but i have no idea, from where & how should i call this function.
please help.
with regards,
tony
--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> On 6/26/05, tony_lic <[EMAIL PROTECTED]> wrote:
>
> > 3)If the status is "done", i have to display one image say a
green
> > flag, if the status is "not done" then i have to display other
image
> > say a red flag.
>
> In your setValue():
>
> if (status == "done")
> image.source = "green.jpg";
> else
> image.source = "red.jpg";
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/