PDA

View Full Version : Number Field -- Render to '0.00'



funnyfox
31 Oct 2012, 7:38 PM
I want to render my numberfield to '0.00', So if the text is 0 it should show 0.00 by default, if the text is 75 it should display 75.00.

I couldn't do it using decimalPrecision:2 , I tried other ways as well from the forums, Nothing helped me. Can any one throw some light on this.

scottmartin
31 Oct 2012, 8:40 PM
You will have to provide this functionality. Here are a few options:
http://www.sencha.com/forum/showthread.php?147962
http://www.mysamplecode.com/2011/12/extjs-4-set-decimal-precision-using.html

Regards,
Scott.