Ron Harlev
Ron Harlev

Reputation: 16673

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 replace it with with a standard thousands separator (comma or other)?

Upvotes: 7

Views: 2529

Answers (2)

Bradley Mountford
Bradley Mountford

Reputation: 8273

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!

Upvotes: 6

shreyas rane
shreyas rane

Reputation: 41

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

Upvotes: 4

Related Questions