Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Cliff on Apr 18, 2008 00:07
open dhtmlx forum
Format price column

Is it possible to format a price column?
I am using a tree grid and have used aGrid.setMathRound(2); however the price column now formats to .1
how can i fix this?

Actually when i enter 0.007 in the grid in the price cell it shows up at .1 once you focus somewhere else. As this is the root cause i was trying to fix will formatting the price column to two decimal places fix the problem?

thanks again
cliff
Answer posted by Support on Apr 18, 2008 01:57
setMathRound command will affect only cells which result based on math, if you need to have formating for normal cell you can use edn|ron column type and use setNumberFormat command
Problem with incorrect math rounding in some cases confirmed and fixed, please contact us directly if you need an updated version of related extension.