Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
465
Issue with cell editor format and rounding to 2 decimal places
posted

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

 

function WebGrid_AfterCellUpdate(gridId, cellId)

{

var cell = igtbl_getCellById(cellId);

var val = cell.getValue();

if (isNaN(val) == false)

cell.setValue(val.toFixed(2));

}

Parents Reply Children
No Data