Thank you. Works like a charm!
JesterXL wrote:
That's actually right.
LabelFunctions just return a string, so most don't really care about
scope. Does yours? If so, do:
column.labelFunction =
Delegate.create(this, formatApples);
-----
Original Message -----
Sent: Thursday, December 01, 2005 4:32 AM
Subject: [flexcoders] LabelFunction problem with DG built
dynamically
I have a datagrid that is built
dynamically via AS.
I add columns to the datagrid
var
column:DataGridColumn = new DataGridColumn("Apples");
column.headerText = "Apples";
column.columnName = "apples";
column.labelFunction = formatApples;
The labelFunction does not seem to work. What is
the right way to assign labelFunction.
Regards
Sree
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|