[CLOSED] formating cell value with decimalPrecision 4

  1. #1

    [CLOSED] formating cell value with decimalPrecision 4

    Hi

    I have a gridPanel with money values in cells...

    I need format this money values with decimal precision 4...

    Any idea how I can do this? Now I use this way:

    <ext:Column runat="server" Text="Valor unitário" DataIndex="ValorUnitario" Width="90px" Sortable="true" Align="Right">
        <Renderer Fn="Ext.util.Format.brMoney"  />
        <Editor>
               <ext:NumberField ID="TextField1" runat="server" DecimalSeparator="," DecimalPrecision="4"  SelectOnFocus="true"/>
        </Editor>
    </ext:Column>
    Thanks for any help!
    Last edited by Daniil; Jan 27, 2012 at 3:38 PM. Reason: [CLOSED]
  2. #2
    Hi,

    This way:
    <Renderer Handler="return Ext.util.Format.brMoney(value, null, 4);" />
    See also
    http://docs.sencha.com/ext-js/4-0/#!...ethod-currency
  3. #3
    Thanks a lot, Daniil...

Similar Threads

  1. Replies: 0
    Last Post: Sep 05, 2011, 10:01 AM
  2. [CLOSED] Formating NumberField
    By Pablo_Azevedo in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 03, 2011, 2:19 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] DecimalPrecision does NOT work on a NumberField
    By jsemple in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Aug 31, 2009, 3:06 AM
  5. [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

Posting Permissions