You need to sign in to do that
Don't have an account?
The_Fox
Scontrol
Hi Guys,
Just a quick question, how to have Currency field displayed with user's formating in a s-control
Does the class dataCell CurrencyElement is enough or not?
Thanks for the tips
Regards
Just a quick question, how to have Currency field displayed with user's formating in a s-control
Does the class dataCell CurrencyElement is enough or not?
Thanks for the tips
Regards
function FormatNumber(n, p, t, d){ //v1.0 should take user locale for thousand and decimal separator
var m = (p = Math.abs(p) + 1 ? p : 2, d = d || ",", t = t || ".", /(\d+)(?:#(\.\d+)|)/.exec(n + "")), x = m[1].length > 3 ? m[1].length % 3 : 0; return (x ? m[1].substr(0, x) + t : "") + m[1].substr(x).replace(/(\d{3})(?=\d)/g, "$1" + t) + (p ? d + (+m[2] || 0).toFixed(p).substr(2) : ""); };