[CLOSED] [1.0] Number format in Grid Column

  1. #1

    [CLOSED] [1.0] Number format in Grid Column

    We use the renderer to format numbers in grid columns i.e.

    Ext.util.Format.number(value, '0,000.0000')

    Now they want a specific format for 6 decimals but they only want to show the decimals that are not 0. example:

    Value Display
    1.000000 1
    1.540000 1.5
    1.234567 1.234567

    What would be the best way to accomplish that?

    Thanks~


  2. #2

    RE: [CLOSED] [1.0] Number format in Grid Column

    You are probably best to just write a custom function to format the number/string as per your business requirements.

    Geoffrey McGill
    Founder

Similar Threads

  1. Format Number in GridPanel Template Column
    By pooja in forum 1.x Help
    Replies: 0
    Last Post: May 04, 2012, 9:43 AM
  2. [CLOSED] number renderer in grid column
    By Vasudhaika in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Dec 05, 2010, 10:01 AM
  3. [CLOSED] Number grid column format
    By Stefanaccio in forum 1.x Legacy Premium Help
    Replies: 15
    Last Post: Oct 27, 2010, 2:40 PM
  4. Link in Grid with format number
    By bsnezw in forum 1.x Help
    Replies: 2
    Last Post: Oct 26, 2009, 2:50 PM
  5. how to set the grid column format as Float
    By Dinesh.T in forum 1.x Help
    Replies: 0
    Last Post: Jul 09, 2009, 10:03 AM

Posting Permissions