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:

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

    ReplyDelete
  2. 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

    ReplyDelete
  3. 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

    ReplyDelete
  4. A man is only as good as what he loves.

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

    ReplyDelete
  5. 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/

    ReplyDelete
  6. 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].

    ReplyDelete
  7. 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

    ReplyDelete
  8. 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

    ReplyDelete
  9. bookmarked!!, I love your web site!

    my page elektronisk cigaret

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

    Review my web blog ... elektronisk cigaret

    ReplyDelete
  11. 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

    ReplyDelete
  12. 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

    ReplyDelete
  13. 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

    ReplyDelete
  14. 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

    ReplyDelete