Forum
Topic RSS
Related Topics
Hi Everyone,
I'm hoping someone has a solution to this problem (i've searched the forrum and can't find a solution there).
In my grid, i have some currency columns defined as ...
{ name: 'Rate', index: '4', editable: true, edittype: 'text', search: false,
editrules: { edithidden: true, number: true }, formatter: 'currency', align: 'right',
formatoptions: { decimalSeparator: ".", thousandsSeparator: " ", decimalPlaces: 2, defaultValue: "", prefix: "£" },
hidden: false, hidedlg: true, width: widthItemAddToJobRate
},
... to prefix the currency with a british pound symbol, rather than the $ symbol.
The grid displays fine (the british pound is displayed). However, in inline edit when I try to save a value such as £150.00 i get an error message as follows ...
£150.00 Rate: Please, enter valid number
... is there any solution to this problem, or do I need to forget about using the 'currency' formatter with the british pound?
Thanks,
Michael
09:56
Moderators
30/10/2007
OfflineHello,
I will try to explain the problem:
When the number is created we create it with £. Actually this is a html representation for the Pound.
http://www.ascii.cl/htmlcodes.htm
3. Make your own custom checking function - something like currency (this type of checking is mussed in our package)
http://www.trirand.com/jqgridw.....mmon_rules
(See custom checking example)
Kind Regards
Tony
For professional UI suites for Java Script and PHP visit us at our commercial products site - guriddo.net - by the very same guys that created jqGrid.
Most Users Ever Online: 994
Currently Online:
12 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
Log In
Home
