[CLOSED] I wish that float numbers in ext:numberfield remain formated!

  1. #1

    [CLOSED] I wish that float numbers in ext:numberfield remain formated!

    Hi!

    I wish that float numbers in ext:numberfield remain formated!

    If I input a integer value, when the control lost focus, the number are formated without decimal value... I don't find the approprieted property to configure this behavior.

    <%@ Page Language="vb" %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <ext:ResourceManager ID="resManagerDividas" runat="server" Locale="pt-BR" />
        <form id="form1" runat="server">
        <ext:NumberField runat="server" ID="txtMulta" LabelAlign="Top" FieldLabel="Multa (%)" Text="0,00" MaxLength="10" FieldStyle="text-align:right" DecimalSeparator="," MinValue="0" MaxValue="100" X="320" Y="55" Width="85px" AllowDecimals="true" DecimalPrecision="2" />
        </form>
    </body>
    </html>
    Last edited by Daniil; Mar 21, 2012 at 4:15 PM. Reason: [CLOSED]
  2. #2
    Hi,

    Do you mean zeros?

    I guess you should set up
    TrimTrailedZeros="false"
  3. #3
    Hi Daniil.

    Works fine!

    Thanks a lot.

Similar Threads

  1. Replies: 11
    Last Post: Oct 07, 2011, 9:14 AM
  2. Replies: 8
    Last Post: Oct 03, 2011, 5:50 AM
  3. [CLOSED] textarea with line numbers
    By bogc in forum 1.x Premium Help
    Replies: 4
    Last Post: Sep 27, 2011, 11:37 AM
  4. [CLOSED] Forcing combobox to remain open after selection
    By SymSure in forum 1.x Premium Help
    Replies: 1
    Last Post: May 30, 2011, 9:38 PM
  5. Replies: 2
    Last Post: Jan 21, 2011, 12:53 PM

Posting Permissions