HTML cfgridcolumn 中的十进制数字
由于某种原因,我所有的 cfgrid 都删除了美元金额的结尾 0。所以 104.50 会变成 104.5,332.80 会变成 332.8
如果它不是 0,它会显示最后一位数字。所以 345.43 就可以了。
我尝试过使用货币类型,但这只适用于 Flash 网格。
这似乎是一个简单的问题,但我被困住了,我尝试的一切都不起作用。
对此的任何帮助都会很棒。
谢谢!
For some reason all my cfgrids drop the ending 0 of dollar amounts. So 104.50 is coming up as 104.5 and 332.80 is coming up as 332.8
It displays the last digit if it is not a 0. So 345.43 is fine.
I have tried using the currency type but that only works with flash grids.
This seems like an easy problem but I am stuck and everything I am trying is not working.
Any help on this would be great.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是针对 CF9 (ExtJS 3.x) 的。
确保您的 HTML 具有
才能使
正常工作。将
testgrid
替换为网格的名称,并将倒数第二行的2
替换为要应用格式化程序的列索引。This is for CF9 (ExtJS 3.x).
Make sure your HTML has
<head></head>
in order for<cfhtmlhead>
to work.replace
testgrid
with your grid's name, and2
on 2nd last line to the column index you want to apply the formatter to.