This topic contains 4 replies, has 2 voices, and was last updated by Matt 10 years, 4 months ago.
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › TreeGrid › Currency Symbol Position
Tagged: jqwidgets number input, Number Input
This topic contains 4 replies, has 2 voices, and was last updated by Matt 10 years, 4 months ago.
Hi
Currently I’m using this code:
localization: {
currencySymbol: "£",
currencySymbolposition: "before"
}
To specify that currency fields should have a £ sign at the front which for positive numbers works fine however for negative numbers the £ sign appears in front of the minus sign like this: £-123.45
Is there a way to change it to display as -£123.45?
Thanks
Hi Matt,
The property’s name is symbolPosition: http://jsfiddle.net/jqwidgets/v94Tq/. It’s not necessary to define the position in the Localization.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com
Hi Peter
Your example doesn’t fix the issue as the value still displays as £-123.45 or -123.45£. I would like it to display as -£123.45 to match how negative currency values are displayed in other applications.
Also the example is of a jqxNumberInput so I think the syntax is different. The documentation here:
http://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxtreegrid/jquery-treegrid-localization.htm
says that it is currencySymbolPosition and if I set it to after then the symbol appears after the value.
I’ve created a treegrid fiddle here:
http://jsfiddle.net/1gvanjp4/
Hi Matt,
Ok, you can implement the cellsRenderer function of that column and override the Grid’s built-in Cells display.
Best Regards,
Peter Stoev
jQWidgets Team
http://www.jqwidgets.com
Thanks for your help, that worked.
You must be logged in to reply to this topic.