I am using a Flex MobileGrid to display some real estate date in a mobile
app.  Unfortunately, if the columns contain too much information, they do
not automatically truncate the column to ellipsis "..."  As a result, I am
trying to write an ActionScript ItemRenderer to help with this and am having
no success.  I am a MXML programmer for the most part, and use actionscript
for program logic, but I am not very good with creating my own ActionScript
classes.  I will list my ActionScript ItemRenderer here.  Please let me know
if you see anything that would help me to get the ellipsis "..." that I am
hoping for.  Thanks!


package renderers {

import flashx.textLayout.formats.LineBreak;

import spark.components.itemRenderers.MobileGridTextCellRenderer;

public class mobileGridRenderer extends MobileGridTextCellRenderer{

        public function mobileGridRenderer() {

            super();
            multiline = false;
            lineBreak = LineBreak.EXPLICIT;
            truncateToFit("...");
        }
    }
}




--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/

Reply via email to