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

Threaded View

Previous Post Previous Post   Next Post Next Post
  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 10:22 AM.

Similar Threads

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

Tags for this Thread

Posting Permissions