I do know a bit of using itemrenderer.. Inline that is.. 

if you could post some example, I'd greatly appreciate it.

would the itemrenderer be an as file or would it be inline as well?

Thanks.

Angelo



________________________________
From: valdhor <valdhorli...@embarqmail.com>
To: flexcoders@yahoogroups.com
Sent: Wed, 17 March, 2010 14:41:19
Subject: [flexcoders] Re: Reuse a LabelFunction

  
Use an itemRenderer instead.

If you need help creating one, let me know.

--- In flexcod...@yahoogro ups.com, Angelo Anolin <angelo_anolin@ ...> wrote:
>
> Hi FlexCoders,
> 
> I have created a labelfunction which I use in my datagrid to format the 
> display value.
> 
> <mx:DateFormatter id="df" formatString= "DD/MM/YYYY" />
> 
> And this is the AS function
> private function labelFunctionTest( itm:Object, col:DataGridColumn) :String
> {
>     return df.format(itm. DataFieldNamefor Col1);
> }
> 
> Is there a way so that I could reuse the same label function to other 
> datagrid columns?  As you can see from the script above, I am only using the 
> function to Col1 for the datagrid.  How would I be able to specify the 
> datafield if I am going to reuse the same with other datagrid columns?
> 
> Thanks.
>


 


      

Reply via email to