Jan 03, 2011, 2:27 PM
[CLOSED] Formatting Number Decimal & thousand seperator
Hi,
Is it possible to have thousands Separator in a numeric Field
in case of TextField i m using this code but i want the format without currency is it possible?
how can i get the format 1,234,456.89 using the number format?
Is it possible to have thousands Separator in a numeric Field
in case of TextField i m using this code but i want the format without currency is it possible?
<ext:TextField ID="TextField1" runat="server" MaskRe="/[0-9\.]/">
<Listeners>
<Change Handler="el.setValue(Ext.util.Format.usMoney(newValue.replace(/[$]/g, '')));" />
</Listeners>
</ext:TextField>
i have also tried using<Change Handler="this.setValue(Ext.util.Format.number(newV alue.replace(/[\,\.]/g, ''), '0.000));" />
but it didn't work !how can i get the format 1,234,456.89 using the number format?
Last edited by geoffrey.mcgill; Jan 05, 2011 at 8:10 PM.
Reason: [CLOSED]