Forum
14:29
26/10/2010
Hi there
jqGrid 3.8.1 is set up with a column formatted as "currency", loaded with german locale.
Server sends the following data: "3097.23".
jqGrid displays this value as "3.097,23 €". This is right!
But after clicking on the cell for starting inline editing, this cell get transformed back to "3097.23".
Maybe there comes another bug from a previous version alive: http://www.trirand.com/blog/?p.....matter-bug
kind regards
chronohh
17:29
26/10/2010
I just found the problem by myself:
in file "grid.inlineedit.js" at row number 27 there is the following code:
tmp = $.unformat(this,{rowId:rowid, colModel:cm[i]},i);
} catch (_) {
tmp = $(this).html();
}
Just throwing this stuff away and writing
is the solution for us.
Do you see any problems with that?
I suggest, that unformatting the values should happen for sending data to the server, not in display situation.
Kind Regards,
chronohh
18:03
26/10/2010
Oh, there are side effects with the solution i mentioned above when you start inline editing but make no changes. When you press escape or leave the cell while clicking on another one, you will receive an "NaN"-Value in the column.
This is because of code in "jquery.fmatter.js", Line 67:
Change
to
Regards, chronohh
Most Users Ever Online: 715
Currently Online:
22 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66