I have a decimal property in my modal which keeps loosing decimal precision whenever i bind it to Kendo grid.
Here is the example.
If the value is 501.14, grid will display 501.14. (correct)
If the value is 501.10, grid will display 501.1 (wrong, it should have displayed 501.10)
If the value is 501.00, grid will display 501 (wrong, it should have displayed 501.00)
I know i can easily solve this issue by using 'Format' function in the grid, i.e. .Format("{0: n2}") but the issue is i won't know how many decimal places i will be getting during the call so i won't be able be to hard code the value in 'Format' function. Also, i need to display all the decimal places even though it is just 0 at the end i.e .00 or .10.
Any suggestion how i can fix this issue?
Thanks
Avinash