Results 1 to 2 of 2

Thread: Ext.util.Format

  1. #1
    Sencha User
    Join Date
    Jul 2012
    Location
    India
    Posts
    87

    Default Ext.util.Format

    Hi,
    Do we have something like this in Ext util format library:

    {format:"#,###.##"}

    Thus, we can omit additional zeros in case the value is say, 1000.
    The one that we currently have in Extjs, will return 1,000.00, even if the value is 1000, as we are formatting using {format:"0,000.00"}.
    I need the value as 1,000 and not 1,000.00, if te raw value is 1000.
    Last edited by Ronits; 17 Jan 2014 at 3:23 AM. Reason: Incomplete
    Thanks,
    Ronz

  2. #2
    Ext JS Premium Member
    Join Date
    Jul 2011
    Location
    Hyderabad, India
    Posts
    99
    Answers
    15

    Default

    Hi Ronits,

    Code:
    Ext.util.Format.currencySign = '';
    Ext.util.Format.currency(1000, '', 0, false); // 1,000

    Hope this works

    Thanks,
    Md Naveed


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •