[CLOSED] Formating NumberField

  1. #1

    [CLOSED] Formating NumberField

    Hi,

    I need to format the value within my NumberField control like 254,538,842.98546.
    NOTE: The format can occur while typing the numbers or in the blur event.

    How can I do this?

    Thanks.
    Last edited by geoffrey.mcgill; Aug 26, 2010 at 7:09 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Might have to change to an <ext:TextField>. The following two forum threads should help solve the problem.

    http://forums.ext.net/showthread.php...at-Numberfield

    http://forums.ext.net/showthread.php...ld-Mask-Format
    Geoffrey McGill
    Founder
  3. #3
    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?

     <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 tried using

    <Change Handler="this.setValue(Ext.util.Format.number(newValue.replace(/[\,\.]/g, ''), '0.000));" />
    how can i get the format 1,234,456.89 using the number format?
    Last edited by Daniil; Jan 03, 2011 at 2:17 PM. Reason: Please use [CODE] tags
  4. #4
    Hi,

    Please start a new forum thread.

    If you feel two threads are related, please feel free to cross link between the two.

Similar Threads

  1. ext:CalendarPanel DayView formating Time in portuguese
    By gefferson.librelato in forum 1.x Help
    Replies: 7
    Last Post: Jan 25, 2013, 12:04 PM
  2. [CLOSED] formating cell value with decimalPrecision 4
    By supera in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jan 27, 2012, 3:31 PM
  3. GridPanel Row Formating based on Data
    By vivekrane1986 in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2010, 7:15 AM
  4. [CLOSED] Formating NumberField & DatePicker on the fly with CultureInfo.
    By gokcemutlu in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Apr 02, 2009, 6:58 AM
  5. Replies: 0
    Last Post: Oct 07, 2008, 9:56 AM

Tags for this Thread

Posting Permissions