Hi,
It's simple, you can create a simple custom cellrenderer for datagrid column
which would show image based on column/cell value.
Look at docs here:
http://livedocs.macromedia.com/flex/15/flex_docs_en/0527.htm
If you still have any queries, ask here..
-abdul
-Original Message-
From: digital_eyezed [mailto:[EMAIL PROTECTED]
Sent: Sunday, April 10, 2005 11:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrids and Images
Hi,
I have a datagrid which is populated by a result from a remote object
(an array of value objects), one of the value object attributes is a
boolean. I want to show an image if the boolean is true in the
datagrid, is this possible.
e.g.
Name, age, genger are the elements of the value object, where gender
is true or false. If gender is true then I show a male symbol
(image),
else show a female symbol(image).
Normally a simple embedded if statement would have been able to
tackle
this, but as the datagrid is populated by the dataProvider tag I
can't
see how to create this logic. Maybe I have to use a custom component
or a reapeater tag.
Thanks,
Iain
Yahoo! Groups Links
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/