I'm having issues getting constraints for the NumberTextBox working as I want them to.
The specific issue I'm having is how to setup the text box to format 1.2 to 1.20 when it looses focus, without rounding 1.205 to 1.21 or truncating 1.205 to 1.20. I want the user to fix the extra digit(s) after the decimal.
Karl - Thanks for your reply... I thought the format was somehow doing this, but would agree with you it is rounding issue. I have updated the jsfiddle with a rounding section...
number.round(1.105, 2) = 1.1 (Chrome)
However, I don't want to round at all... My requirement for this project is that there is no rounding/truncating. The user must fix the validation issue. The places: 2 is very close to what I need. It has a great feature where it adds validation as you type if you go past 2 places past the decimal. The formatting of number 2.3 just needs to add the 0 in 2.30 before attempting the validation on blur (like it does this if only the pattern ##0.00 is specified).
Thanks again for your response.
On Tue, Mar 17, 2015 at 8:14 PM, Karl Tiedt [via Dojo Toolkit] <[hidden email]> wrote:
I suspect your problem is directly related to the notes here: