PDA

View Full Version : Need help on numberfield decimalPrecision



saravanakmr
28 Dec 2011, 4:13 AM
In numberfield component i added decimalPrecision is 2.


i enter now on numberfield 11.00


after i came out from numberfield it was showed 11 only...


it was rounded and show i know


Now my question is can we display value like 11.00 even after i comeout from numberfield?


Any idea can anyone giveme suggestion?


Thnks

mitchellsimoens
28 Dec 2011, 9:06 AM
The issue is a float value of 11.00 will always return 11. This is how JavaScript works. You can create an override to the fixPrecision method of the number field to change the behavior you want.

saravanakmr
28 Dec 2011, 9:35 AM
Thank you...I will try ...