Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Adam Downs on Feb 13, 2009 09:10
open dhtmlx forum
Math Results Format

I am using pro grid 2.0 and I have a math column... I have math rounding set to 2 and when the result is Negative less then 1 the format is wrong

IE 100-100.5 = "0-.5" I need the negitive sign to be on the left of the result not in the middle

Regards,
Answer posted on Feb 13, 2009 09:20
Instead of using setMathRound, you can use edn ( or ron ) column type with math support defined and setNumberFormat 
    mygrid.setColTypes("ed,ed,price,ed,edn[=]");
    mygrid.setNumberFormat("0.00",4);