Maybe the signature of your function is not the right one, try using :

 

private function onMyLabelFunction (item , columnName) : String {

 

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of JesterXL
Sent: Tuesday, May 17, 2005 3:20 PM
To: Flexcoders
Subject: [flexcoders] DataGrid.labelFunction

 

I cannot get this to work.

I've tried:

my_datagrid.labelFunction = Delegate.create(this, onMyLabelFunction);
my_datagrid.labelFunction = onMyLabelFunction;

As well as through the attribute in the datagrid tag:

<mx:DataGrid labelFunction="onMyLabelFunction"

I can trace out that it's actually setting the value to a valid function
through the debugger and me tracing out the values to a TextArea, but that
same debugging session shows the actual function itself never getting run.

I've tried setting the dataProviders right after, 1 frame after, and even 2
frames after via multiple doLaters.

I've tried setting the ViewStack hosting this component to to auto
creationLayout instead of all, and used childrenCreated to defer the actual
setup.

Nothing works.

:: whips out gak and unloads a few rounds into monitor ::

--JesterXL




Yahoo! Groups Links

Reply via email to