2010-07-04

Specify formatter on AdvancedDataGridColumn

The AdvancedDataGrid in Flex certain contains way more functionality than the regular DataGrid in Flex. It contains features like multi-column sorting, multi-cell selection, grouped columns and much more.

Once feature I recently discovered is that you can specifier the formatter to be used on a particular AdvancedDataGridColumn. This allows you to quickly format, say monetary values, without the need for creating a label function or using a renderer.

Example is as follows:

[mx:NumberFormatter id="nf" precision="2" rounding="none"/]
...
[mx:AdvancedDataGrid id="dg2"]
[mx:columns]
[mx:AdvancedDataGridColumn headerText="Name" dataField="name"/]
[mx:AdvancedDataGridColumn headerText="Balance" dataField="balance" formatter="{nf}"/]
[/mx:columns]
[/mx:AdvancedDataGrid]

15 comments:

mario games said...

It is the coolest site, keep so!

Anonymous said...

Wow all I can say is that you are a great writer! Where can I contact you if I want to hire you?

Anonymous said...

coupon code for blu electronic cigarette pcc electronic cigarette [url=http://connections.blackboard.com/people/22e982982b]law against selling electronic cigarette flavor [/url] what is the best electronic cigarette starter kit seattle electronic cigarette

Anonymous said...

watch TRON: Legacy film TRON: Legacy movie summary [url=http://connections.blackboard.com/people/1e16668708]TRON: Legacy movie full movie [/url] download the TRON: Legacy TRON: Legacy trailers
Life as We Know It movie hd download where to download Life as We Know It movie [url=http://connections.blackboard.com/people/2f3eda2a97]where can i download Life as We Know It movie [/url] download Life as We Know It hd Life as We Know It 3d
The Tourist information watch The Tourist hd [url=http://connections.blackboard.com/people/6498f67893]the The Tourist trailer [/url] The Tourist movie theater The Tourist movie to watch

Anonymous said...

A man is only as good as what he loves.

-----------------------------------

Anonymous said...

Having read this I believed it was very enlightening.

I appreciate you spending some time and
energy to put this informative article together. I once again
find myself spending way too much time both reading and posting comments.
But so what, it was still worth it!
My web blog http://bostaditurkiet.net/

Anonymous said...

top [url=http://www.c-online-casino.co.uk/]uk casino bonus[/url] brake the latest [url=http://www.realcazinoz.com/]online casinos[/url] free no consign perk at the chief [url=http://www.baywatchcasino.com/]www.baywatchcasino.com
[/url].

Anonymous said...

I really like your blog.. very nice colors & theme.
Did you create this website yourself or did
you hire someone to do it for you? Plz answer back
as I'm looking to construct my own blog and would like to find out where u got this from. many thanks
My webpage : social.magical15.com

Anonymous said...

Please let me know if you're looking for a article author for your site. You have some really good articles and I believe I would be a good asset. If you ever want to take some of the load off, I'd love to write
some articles for your blog in exchange for a link back to mine.
Please send me an e-mail if interested. Thanks!


Also visit my web site diet plans that work

Anonymous said...

bookmarked!!, I love your web site!

my page elektronisk cigaret

Anonymous said...

Thanks for finally writing about > "Specify formatter on AdvancedDataGridColumn" < Loved it!

Review my web blog ... elektronisk cigaret

Anonymous said...

Fantastic website. Lots of useful info here. I'm sending it to some buddies ans also sharing in delicious. And of course, thanks on your effort!

my web-site ... nicotine juices

Anonymous said...

Excellent blog! Do you have any tips and hints for aspiring
writers? I'm hoping to start my own blog soon but I'm a little lost on everything.
Would you recommend starting with a free platform like Wordpress or go for a paid option?
There are so many options out there that I'm totally overwhelmed .. Any recommendations? Thank you!

Have a look at my blog :: billig ecigaret

Anonymous said...

It is not my first time to pay a quick visit this web page, i am browsing this web page dailly and take pleasant facts from here
every day.

My webpage: electronic cigarette review

Anonymous said...

Thanks on your marvelous posting! I definitely enjoyed reading it, you
will be a great author.I will ensure that I bookmark your blog
and will eventually come back very soon. I want to encourage you to ultimately
continue your great job, have a nice holiday weekend!


Have a look at my website; e-cigarette