Yes, a cellrenderer is on the cell level. Yes, you can include any other
component you like (image or otherwise). Yes, it can very easily be done on
a conditional basis.

Bold text, red text, what ever you heart desires. :)

Jason

-----Message d'origine-----
De : [email protected] [mailto:[EMAIL PROTECTED] la
part de Ryan Pieszak
Envoyé : vendredi 14 avril 2006 16:42
À : [email protected]
Objet : [flexcoders] Re: Flex2 Beta2 - Looping through dataGrid to bold
cells


Hey Karl, thanks for the quick response!

Ideally, I'd like certain rows to be bold when the data is populated,
but I don't know how to do that.  So, I'd like to bold the cells as
soon as the data is displayed.  I never want the user to see the data
in the dataGrid without the bold text.

I'm really curious about this custom cell renderer.  Can it go to the
cell level, or just row?  Can I include pictures???  Can all this be
done on a conditional basis (the value of the cell)?

I can't find a Beta2 link for it, everything is Beta1, except for
this...
http://livedocs.macromedia.com/labs/1/flex20beta2/wwhelp/wwhimpl/commo
n/html/wwhelp.htm?context=LiveDocs_Parts&file=00000123.html#142625
...which is clearly no help.  Any links would be greatly appreciated.

Thanks.

--- In [email protected], "Karl Johnson" <[EMAIL PROTECTED]>
wrote:
>
> To set the style to bold, you will most likely want to do
> item.setStyle("fontWeight", "bold");
> (I have not tested it specifically on this object type, but that is
what
> it would be on any object that does support it).
>
> When do you need to set rows to bold? Does it always happen as soon
as
> the dataprovider is set/the grid shows data? Then you should go the
> custom cell renderer rout. Then you can do anything you want to each
> cell, including display objects other than strings.
>
> Hope that helps!
>
> |<
>
> Karl Johnson
> Cynergy Systems, Inc.
> http://www.cynergysystems.com
>
> -----Original Message-----
> From: [email protected]
[mailto:[EMAIL PROTECTED] On
> Behalf Of Ryan Pieszak
> Sent: Friday, April 14, 2006 9:32 AM
> To: [email protected]
> Subject: [flexcoders] Flex2 Beta2 - Looping through dataGrid to bold
> cells
>
> Hello all, if there's a better way to do this, please let me know.
I'd
> prefer not to loop everytime the grid is refreshed.
>
> So, if I'm trying to bold certain cells based on their value (by
> looping), these are the problems I'm having...
>
> 1) I can't find a property that holds the total row count of the
grid to
> use as the number to loop through.
>
> 2) I thought this was the way to bold the text, but I can't get it
to
> work...
>    my_Grid.columns.my_Column[row_number].fontWeight="bold";
>
> Thanks guys.
> Ryan
>
>
>
>
>
>
> --
> 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
>






--
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

 Visit your group "flexcoders" on the web.

 To unsubscribe from this group, send an email to:
 [EMAIL PROTECTED]

 Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.





--
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/
 


Reply via email to