I can't figure out how to handle calculations using knockout js and a non us locale. My comma is , and is validated correctly using the jquery.globalization plugin but the knockout calculation is giving me a NaN. Does knockout js support this in any way or does it exist any workarounds?
Example:
Make the cartEditor example on the knockout js site work allowing decimal values in the quantity field and allowing globalized input (, as comma sign) and output formatting
http://knockoutjs.com/examples/cartEditor.html
I need this to work on a asp.net mvc 3 site because I am running the site using the nb-NO culture and the model binder is expecting , as the comma sign
Modified it to make it compatible with the latest autoNumeric version (1.9.x)
I did something like this by writing a custom binding that wrapped autoNumeric.js for the formatting. (gist)
the data binding using this custom autoNumeric binding looks like this:
Check out autoNumeric.js extensive options for formatting to see what you can do ewith the settings.