'Thousand Seperator & Point' Format for Numberfield in Grid Panel

  1. #1

    'Thousand Seperator & Point' Format for Numberfield in Grid Panel

    If you have a Float type Number Field in your Grid Panel and you want numbers being displayed with both Thousand separator and Point on a grid you can use following code:
    Upto Ext Version 2.4:
    var NumericColumn = new SummaryColumn();
    //On Summary Grid Column
    NumericColumn.SummaryRenderer.Fn="Ext.util.Format.numberRenderer('0.000,0.');";
    
    //On Grid Column
    NumericColumn.Renderer.Fn="Ext.util.Format.numberRenderer('0.000,0.');";
    for Ext Version 2.4 and above:
    var NumericColumn = new SummaryColumn();
    //On Summary Grid Column
    NumericColumn.SummaryRenderer.Fn="Ext.util.Format.numberRenderer('0.0,000');";
    
    //On Grid Column
    NumericColumn.Renderer.Fn="Ext.util.Format.numberRenderer('0.0,000');";
    Last edited by nasim; Nov 15, 2015 at 11:22 AM.
  2. #2
    Hello Nasim,

    Thank you very much for sharing that!

Similar Threads

  1. [CLOSED] Formatting Number Decimal & thousand seperator
    By FpNetWorth in forum 1.x Premium Help
    Replies: 14
    Last Post: Mar 30, 2015, 2:06 PM
  2. [CLOSED] Good thousand separators in NumberField
    By centerinform in forum 2.x Premium Help
    Replies: 1
    Last Post: Nov 11, 2014, 4:05 PM
  3. [CLOSED] Thousand separator in NumberField
    By FpNetWorth in forum 2.x Premium Help
    Replies: 1
    Last Post: Aug 04, 2014, 1:26 PM
  4. Thousand Separator in NumberField
    By EXT in forum 2.x Help
    Replies: 1
    Last Post: Apr 17, 2014, 5:30 PM
  5. [CLOSED] How to allow thousand separator in ext:NumberField?
    By sailendra in forum 2.x Premium Help
    Replies: 1
    Last Post: May 07, 2012, 11:35 AM

Tags for this Thread

Posting Permissions