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 replace 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'}
tointeger : {thousandsSeparator: ",", defaultValue: '0'}
to add comma "," as thousands separator
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With