0

Decimal point replace . with ,

asked 2014-11-26 08:24:19 +0800

Hammerin87 gravatar image Hammerin87
0

I have a double box with format "#,##0.00". When I write for example: 1234.5 (with the numerical point), ZK change it to 12.345, when I need 1.234,5.

Are there any way that when I press numerical point, ZK change it automatically to comma in all doublebox-decimalbox components?

delete flag offensive retag edit

Comments

This is not a solution. I need that when I press the point keypad, it is replaced by a comma.

Is there no way at all DOUBLEBOX point is replaced by a comma?

Hammerin87 ( 2014-12-01 07:27:40 +0800 )edit

ZK Intbox and Doublebox components are getting parsed into native html <input> elements. So, what you are looking for is to override the browser's keyboard events handling. You may google around some useful javascripts doing such things.

cyiannoulis ( 2014-12-01 09:19:14 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-26 12:51:26 +0800

cyiannoulis gravatar image cyiannoulis
1201 10

updated 2014-11-27 11:37:00 +0800

I think this is not a ZK issue. It has to do with your regional settings and/or your browser settings. Obviously the browser does not understand the point (.) symbol as decimal point.

You may change the input languages in Chrome an Firefox going to the settings of your browser and set the preffered order of your languages.

Interner Explorer follows the regional settings of your system.

Hope that helps

Costas

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
2 followers

RSS

Stats

Asked: 2014-11-26 08:24:19 +0800

Seen: 16 times

Last updated: Dec 01 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More