Maybe you can try to use the gwt's NumberFormat with the onChange event. so when value changes you catch the event format the value and set the value on the NumberField. let me know if it's a good solution maybe i have to solve it too ... and maybe early ;)... bye pat
2009/6/15 Halabe <[email protected]> > > Hi, > > I am trying to format a field to always display 2 decimal places. My > field is a currency field and it must have 2 decimal places even if > the numbers end with 0. > > I tried myNumField.setDecimalPrecision(2) but it did not work. > > How can I do that? > > Thank you. > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "GWT-Ext Developer Forum" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/gwt-ext?hl=en -~----------~----~----~----~------~----~------~--~---
