[CLOSED] DecimalPrecision does NOT work on a NumberField

  1. #1

    [CLOSED] DecimalPrecision does NOT work on a NumberField

    Here is my xml source view:

    
    
    
    
    <ext:Anchor>
    
    
    <ext:NumberField
    
    
    ID="txtRegularRate" 
    
    
    runat="server" 
    
    
    FieldLabel="Regular Rate" 
    
    
    Width="90"
    
    
    ReadOnly="false" 
    
    
    AllowDecimals="true"
    
    
    AllowNegative="false"
    
    
    DecimalPrecision="2"
    
    
    MaxValue="100000"
    
    
    />
    
    
    </ext:Anchor>
    
    
    <ext:Anchor>
    
    
    <ext:NumberField 
    
    
    ID="txtVacationRate" 
    
    
    runat="server" 
    
    
    FieldLabel="Vacation Rate" 
    
    
    Width="90"
    
    
    ReadOnly="false" 
    
    
    AllowDecimals="true"
    
    
    DecimalPrecision="2"
    
    
    MaxLength="7"
    
    
    />
    
    
    </ext:Anchor>
    and the code-behind looks like this, it always shows up as '15.2' or takes off the zero. These are currency values, and I am trying to specify precision.

    
    
    
    
    Dim _strRegRate As String = Common.FormatCurrency(Convert.ToDouble(item.RegularRate))
    
    
    Me.txtRegularRate.Text = _strRegRate
    
    
    Me.txtVacationRate.Text = "15.20" 'Common.FormatCurrency(Convert.ToDouble(item.VacationRate))
  2. #2

    RE: [CLOSED] DecimalPrecision does NOT work on a NumberField

    Hi jsemple,

    I've reproduced the issue and we're investigating.


    Thanks for notifying us about the problem.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] DecimalPrecision does NOT work on a NumberField

    Hi,

    Fixed. Please update from SVN

Similar Threads

  1. [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
  2. [CLOSED] NumberField +/- with $
    By rthiney in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 25, 2010, 10:31 PM
  3. [CLOSED] [1.0] NumberField
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Sep 15, 2010, 8:44 PM
  4. Replies: 0
    Last Post: Jun 08, 2010, 6:55 AM
  5. Replies: 2
    Last Post: Mar 16, 2009, 1:50 PM

Posting Permissions