1. #1
    Sencha User dlbjr's Avatar
    Join Date
    Oct 2007
    Location
    Cache, OK USA
    Posts
    281
    Vote Rating
    3
    dlbjr is on a distinguished road

      0  

    Default How to format numeric field in form as US currency

    How to format numeric field in form as US currency

    var num_EstSav = new Ext.form.NumberField( {
    name : 'estsav',
    fieldLabel :
    'Estimated Savings',allowBlank : false,
    width : 100,
    value : 0,
    decimalPrecision :2
    });

    I want this field formatted as US Currency.

    Any assistance appreciated
    dlbjr - David L. Bryant Jr.

    Owner of
    dlbjr Technology Consulting
    Web2 System Developer & Consultant
    Focused on C.I. - Six Sigma - Shingo - Lean Technologies
    dlbjr.consulting@gmail.com

    Owner of:
    Attractive Graphics - "custom screen printing"
    attractivegraphicscsp@gmail.com

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default

    Haven't used this, but it might be useful (or give you some ideas): Ext.ux.currencyField

  3. #3
    Ext User para's Avatar
    Join Date
    Apr 2007
    Location
    Redmond, WA
    Posts
    918
    Vote Rating
    0
    para is an unknown quantity at this point

      0  

    Default

    I don't know the exact needs of your app, but the Ext.util.Format has a usMoney function which may help

Thread Participants: 2