[CLOSED] [1.0] Column Renderer Format/Handler

  1. #1

    [CLOSED] [1.0] Column Renderer Format/Handler

    Hey, guys.

    Been awhile since I asked a question. But, here we go.


    I'm building a ColumnModel in code behind and everything is working great. However, I have a column that needs a business rule to determine a price range and how it should be "viewed."


    My question is how can I use the Renderer.Handler and the Format = RendererFormat.UsMoney, to work together?


    Right now I'm doing this (example):


    currentPrice.Renderer.Format = RendererFormat.UsMoney;
    currentPrice.Renderer.Handler = "return '1999';";

    But this isn't formatting the 1999 into UsMoney.


    I'm sure this is pretty easy to resolve!


    Thanks in advance.
  2. #2

    RE: [CLOSED] [1.0] Column Renderer Format/Handler

    Think I just solved my own problem. GO ME!

    What I did was:


    currentPrice.Renderer.Handler = "return Ext.util.Format.usMoney('1999');";

    This formats it, but is this the best way to do it in code behind?

Similar Threads

  1. Grid Column Renderer
    By karthik.arian03 in forum 1.x Help
    Replies: 8
    Last Post: Feb 11, 2011, 7:34 AM
  2. [CLOSED] number renderer in grid column
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 05, 2010, 11:01 AM
  3. [CLOSED] Grid Column Renderer for Currency £
    By CMA in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 07, 2010, 5:52 PM
  4. Checkbox Column with Renderer
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: Jan 13, 2009, 4:05 PM
  5. [FIXED] [V0.6] GridPanel Renderer Format
    By Timothy in forum Bugs
    Replies: 2
    Last Post: Sep 03, 2008, 5:19 PM

Posting Permissions