$("#unitCalc").ejNumericTextbox({
watermarkText: "Units", // sets watermark in numeric
//width: 100px,
decimalPlaces: 12,
incrementStep: 1.001,
enableStrictMode: false,
showRoundedCorner: true,
showSpinButton: false,
validateOnType: true,
groupSeparator : "",
value: 100000000000000.000000000001, // sets value
minValue: -7.000000000001, // sets min value
maxValue: 200000000000000.000000000001, // sets max value
focusIn : "onFocusOut"
}); |
Hi, thanks for your response. When I read through the documentation, it wasn't immediately clear to me that groupSeparator was adding the commas by default. My width property wasn't working because I failed to put the pixel value in quotes. However, there is still an issue with the text box switching to what appears to be an integer when I click on it, even though decimalPlaces is specified and are shown when the widget is not selected. What is causing that?
Also, I tried using -1 for decimalPlaces with version 15.3.0.29 and it does seem to clip trailing zeros, which is nice. However, if I modify the contents of the text box such that the decimal point is removed, it will not allow me to add it back in. But, when I deselect the text box, it shows two zeros after a decimal point that can't be modified with mouse and keyboard. This behavior makes no sense to me. If this is not a bug, can you please explain why this happens? Thanks!
Jay
Hi,
I received a patch for the issue that was preventing the decimal from being re-added after it had been removed when using decimalPlaces set to -1. That issue appears to be fixed, thank you. However, I'm still having issues with the input value being changed to something other than what I input. For example, if I create a numeric textbox as follows and change the input to 0.000005, the value remains the same (0.00000500) when the focus changes. However, if the 5 is moved to the 7th decimal digit as 0.0000005, the value changes to 5.00000000 when the focus changes. This happens whether the decimalPlaces property is -1 or >=7. Why is this happening? I am using version 15.3.0.29 with the supplied patch in place.
$(function () {
$("#unitCalc").ejNumericTextbox({
watermarkText: "Units",
width: "400px",
decimalPlaces: 8,
incrementStep: 1.0000001,
enableStrictMode: false,
showRoundedCorner: true,
showSpinButton: false,
validateOnType: true,
groupSeparator : ",",
value: 10.0000001,
minValue: -10.0000000
});
});
Also, I've notice that it is not possible to click-drag to highlight and select individual digits to be modified. Is there any intention on supporting this feature?
Thanks
[script]
function onControlFocus(args){
var valueLen = this._textBox.value.length;
this._textBox.setSelectionRange(valueLen,valueLen);
} |