I am using a numericedit field in the webgrid with decimal places set to 2. U user can enter 12.129 in the field and when the focus to another row it changes to 12.13. However, the underlying value is still 12.129. How can I fix this so the value stored as 12.13??
I am using the follwoign javacode, but I was hoping there was a more automatic way to do this.
Thanks
{
var val = cell.getValue();
cell.setValue(val.toFixed(2));
}
Hello,
You can use the property MinDecimalPlaces of WebNumericEditor to set precision of number.
I tried this and the value displays as 12.12 is the user enters 12.119. However, if you query the underlying value in the table its still 12.119.