Yes, there is - but explanation is a bit long. Please pick up October and November copies of colfusion magazine - there is 3-part chapter on advanced datagrid from our book. If unavailable, the code for the articles/chapter is here :
http://samples.faratasystems.com/AdvancedDataGrid/index.html
You need to look at custom classfactory and extension of datagridcolumn.
 
Hope this helps,
Anatole Tartakovsky


 
On 10/31/06, Rick Root <[EMAIL PROTECTED]> wrote:

ping...

Rick Root wrote:
>
>
> I'm working on a datagrid that has various formatted items in it..
> several currency columns, a data column, etc.
>
> Using a label function for each seems somewhat overkill.
>
> Ie...
>
> <mx:DataGridColumn width="80" headerText="Legal Credit"
> labelFunction="formatLegalCredit"/>
>
> And here's my function:
>
> public function formatLegalCredit(data, col):String {
> var currency = new CurrencyFormatter();
> currency.precision = 2;
> currency.rounding = "nearest";
> return currency.format (data.LEGCRAMT);
> }
>
> But I'd have to build this function for every column with a number in
> it. Bleagh. Gotta be a better way.
>
> Can I build a datagridcolumn that automatically has a currencyFormatter
> - or a dataFormatter - built into it?
>
> Is there a better way?
>
> Rick
>
>


__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to