Re: [flexcoders] Re: Reuse a LabelFunction

2010-04-19 Thread Angelo Anolin
Thank you Alex and Amy for clarification. Angelo From: Alex Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Fri, 16 April, 2010 22:51:20 Subject: Re: [flexcoders] Re: Reuse a LabelFunction Amy is saying you could

Re: [flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread Angelo Anolin
: Amy amyblankens...@bellsouth.net To: flexcoders@yahoogroups.com Sent: Fri, 19 March, 2010 9:13:38 Subject: [flexcoders] Re: Reuse a LabelFunction   --- In flexcod...@yahoogro ups.com, Angelo Anolin angelo_anolin@ ... wrote: Hi FlexCoders, I have created a labelfunction which I use in my

[flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread valdhor
it in other datagrid columns?  I hope you could provide some samples. thanks. Angelo From: Amy amyblankens...@... To: flexcoders@yahoogroups.com Sent: Fri, 19 March, 2010 9:13:38 Subject: [flexcoders] Re: Reuse a LabelFunction Â

Re: [flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread Alex Harui
could provide some samples. thanks. Angelo From: Amy amyblankens...@... To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Sent: Fri, 19 March, 2010 9:13:38 Subject: [flexcoders] Re: Reuse a LabelFunction  --- In flexcod...@yahoogro

Re: [flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread Angelo Anolin
Hi Alex, Appreciate if you could show a little example. Thanks. Angelo From: Alex Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Fri, 16 April, 2010 12:29:57 Subject: Re: [flexcoders] Re: Reuse a LabelFunction

[flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread Amy
--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi Amy, But as you can see in the function, I am specifying the Datafieldname from the object which was passed. How can I make it more generic so that I can re-use it in other datagrid columns?  I hope you

Re: [flexcoders] Re: Reuse a LabelFunction

2010-04-16 Thread Alex Harui
Harui aha...@adobe.com To: flexcoders@yahoogroups.com flexcoders@yahoogroups.com Sent: Fri, 16 April, 2010 12:29:57 Subject: Re: [flexcoders] Re: Reuse a LabelFunction If it were me, I would subclass DataGridColumn and add the labelfunction to the subclass. Then it has the DGC’s context like

[flexcoders] Re: Reuse a LabelFunction

2010-03-19 Thread Amy
--- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... 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/ / And this is the AS function private function

[flexcoders] Re: Reuse a LabelFunction

2010-03-18 Thread valdhor
it be inline as well? Thanks. Angelo From: valdhor valdhorli...@... 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

[flexcoders] Re: Reuse a LabelFunction

2010-03-17 Thread valdhor
Use an itemRenderer instead. If you need help creating one, let me know. --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Hi FlexCoders, I have created a labelfunction which I use in my datagrid to format the display value. mx:DateFormatter id=df

Re: [flexcoders] Re: Reuse a LabelFunction

2010-03-17 Thread Alex Harui
Should be df.format(item[col.dataField]) On 3/17/10 1:41 PM, valdhor valdhorli...@embarqmail.com wrote: Use an itemRenderer instead. If you need help creating one, let me know. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Angelo Anolin angelo_ano...@... wrote:

Re: [flexcoders] Re: Reuse a LabelFunction

2010-03-17 Thread Angelo Anolin
Subject: Re: [flexcoders] Re: Reuse a LabelFunction Should be df.format(item[ col.dataField] ) On 3/17/10 1:41 PM, valdhor valdhorlists@ embarqmail. com wrote: Use an itemRenderer instead. If you need help creating one, let me know. --- In flexcod...@yahoogro ups.com

Re: [flexcoders] Re: Reuse a LabelFunction

2010-03-17 Thread Angelo Anolin
@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