Good to know I’m not the only person this is giving a headache. In a really old version of this component there was a method to disable decimal numbers so that it would do exactly what you are asking about. Not sure why they didn’t implement it in this version or simply have an overloaded version that accepts integers instead of doubles. I’m trying to use it for a zip code field in a Grid (which is an int in my PostgreSQL db) but I had to make it a double in my Java class and it looks really goofy with the trailing decimal.
Kevin Palembas:
Good to know I’m not the only person this is giving a headache. In a really old version of this component there was a method to disable decimal numbers so that it would do exactly what you are asking about. Not sure why they didn’t implement it in this version or simply have an overloaded version that accepts integers instead of doubles. I’m trying to use it for a zip code field in a Grid (which is an int in my PostgreSQL db) but I had to make it a double in my Java class and it looks really goofy with the trailing decimal.
Kevin, you may be aware of this already, but if its ever a possibility that you can have zip/postal cides from other countries, an int wont work as some countries has characters in the zip codes. 5+4 zip codes may also be an issue.