Thousand separator

  1. #1

    Thousand separator

    Hello everyone

    I am have trying to use comma for separate thousand, this is my code:

    <ext:ModelField Name="OTC" Type="Float"></ext:ModelField>
    
    <ext:Column ID="ClmOTC" runat="server" Width="60" Text="% OTC" Sortable="false" DataIndex="OTC" SummaryType="Sum">
             <Renderer Handler="return value+'%';"></Renderer>
             <SummaryRenderer  Handler="return Ext.util.Format.number(value,'0,000.00')+'%';"></SummaryRenderer >
     </ext:Column>
    for example if the number is 12345.87, I need the number 12,345.87 instanceof 12.345,87

    Thanks for your help!
    Last edited by fabricio.murta; Jan 22, 2016 at 8:48 PM.
  2. #2
    Hello @adan, and welcome to Ext.NET forums!

    Try specifying the locale on your ext:ResouceManager tag.

    For example:
    <ext:ResourceManager runat="server" Locale="en" />
    Here is a list of some possible locale strings:
    af
    bg
    ca
    cs
    da
    de
    el-GR
    en
    en-AU
    en-GB
    es
    et
    fa
    fi
    fr
    fr-CA
    gr
    he
    hr
    hu
    id
    it
    ja
    ko
    lt
    lv
    mk
    nl
    no-NB
    no-NN
    pl
    pt
    pt-BR
    pt-PT
    ro
    ru
    sk
    sl
    sr
    sr-RS
    sv-SE
    th
    tr
    ukr
    vn
    zh-CN
    zh-TW
    I hope this helps!
    Fabrício Murta
    Developer & Support Expert
  3. #3
    Hello Fabricio!

    Thanks for your advice, i could get the correct format

    Best Regards!

Similar Threads

  1. [CLOSED] Thousand separator in NumberField
    By FpNetWorth in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Aug 04, 2014, 12:26 PM
  2. Thousand Separator in NumberField
    By EXT in forum 2.x Help
    Replies: 1
    Last Post: Apr 17, 2014, 4:30 PM
  3. [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
  4. [CLOSED] blank space as thousand separator
    By RomualdAwessou in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Apr 19, 2011, 7:04 PM
  5. [CLOSED] Thousand separator in number Field
    By FpNetWorth in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 28, 2010, 1:01 PM

Posting Permissions