Hi,

You should use mx.controls.TextArea in your cellrenderer.

Search the flexcoders archives or google, people has already done
it...Might save some time..

-abdul 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Marcin Glowacki
Sent: Thursday, October 13, 2005 2:10 PM
To: [email protected]
Subject: [flexcoders] How to create a cell in data grid that displays
text in two lines?

I need to display text in one cell in up to two lines. If text fits in
one line I should show one line. If the text fits in two lines, I
should  display them, and at last if the text is really long, I should
trancate it at the end of second line.

I tried to create cell renderer that is a mx:Text control, but with no
success...
I cound not get the second line to be displayed...

Any ideas?






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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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