Here is the code I tried:
<%@ Page Language="C#" %>
<%@ 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 id="Head1" runat="server">
</head>
<body>
<ext:ResourceManager runat="server" />
<h2>1. Button with Listener</h2>
<ext:Button runat="server" Text="Click Me">
<Listeners>
<Click Handler="alert(Ext.util.Format.usMoney(-1000));" />
</Listeners>
</ext:Button>
</body>
</html>
You press the button and you get $1,000.00
If you look at the code in format.js:
Ext.util.Format.usMoney = function (v) {
return Ext.util.Format.usMoneyTemp(String(v).replace(/[^0-9\.]/g, ""));
};
It's clearly replacing everything that is not a digit or a period with "".
I have the latest 1.0 code.