Hi all,
I have a fairly simple itemRenderer that is working properly. I have some
basic logic to change the color of the text based on the data in the cell.
I've run into a bit of a stumper by trying to get access to the cell that
contains the itemRenderer, to set the backgroundColor.
Is there a way to get access to the object that contains the current object?
In this bit here ( from my itemRenderer )
if (data["msgdelta"] > data["threshold"]) {
setStyle("color","red");
setStyle("fontWeight","bold");
} else {
setStyle("color","black");
setStyle("fontWeight","normal");
}
I want to be able to do something like
parent.setStyle("backgroundColor", "red");
To be able to change the background of the cell that this text sits in.
Is this possible?
I know you can mask over it ... as in
http://www.forta.com/blog/index.cfm/2006/6/8/Creating-A-Background-Color-Ren
derer
But that seems clunky.
Many thanks for any comments,
Paul
--
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/