Subclass DataGridItemRenderer, override validateNow(), call
super.validateNow() then call truncateToFit("...")

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of wdsnapper
Sent: Tuesday, April 10, 2007 4:27 PM
To: [email protected]
Subject: [flexcoders] Determining the max width of text in
DataGridColumn?



Hello,

Can someone tell me if there is a way to determine the maximum width
(in characters) that a DataGridColumn can fit based on a fixed width
layout?

I want to detect overrun and truncate the string, append ..., and have
the tooltip contain the full text. I have not been able to figure out
how to correctly determine what the maximum string length a column can
fit.

Thanks in advance.



 

Reply via email to