PDA

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



supera
Mar 20, 2012, 5:32 PM
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>

Daniil
Mar 20, 2012, 5:41 PM
Hi,

Do you mean zeros?

I guess you should set up

TrimTrailedZeros="false"

supera
Mar 21, 2012, 5:13 PM
Hi Daniil.

Works fine!

Thanks a lot.