开发者

jqGrid record count has space before the thousands digit

When the record count in jqGrid exceeds 1000, there is a visible space between the hundreds and thousands digits. See image below (taken from the jqGrid demo page)

alt text http://img180.imageshack.us/img180/3066/jqgridspace.png

Is there a way to remove this space, or r开发者_如何转开发eplace it with with a standard thousands separator (comma or other)?


You can change the pre-defined formatter options. Here is a link:

EDIT:

Thought I'd give credit to Oleg and paste his comment below wherein he actually does the work to give the code from the documentation:

If you redefine $.jgrid.formatter.integer as following $.jgrid.formatter.integer = {thousandsSeparator: ""}; you will see all integers in jqGrid inclusive the total records number formated without blanks as the separator of thousands. – Oleg May 20 '10 at 8:52

Thanks, Oleg!


changed file grid.locale-en.js from integer : {thousandsSeparator: " ", defaultValue: '0'} to
integer : {thousandsSeparator: ",", defaultValue: '0'} to add comma "," as thousands separator

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜