Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)?

like image 996
Ron Harlev Avatar asked May 19 '10 23:05

Ron Harlev


2 Answers

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!

like image 168
Bradley Mountford Avatar answered Nov 15 '22 00:11

Bradley Mountford


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

like image 38
shreyas rane Avatar answered Nov 15 '22 01:11

shreyas rane