Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
vaadin grid shows only 3 decimals
grid shows only 3 decimals for numeric fields, I think this is default bhaviour of grid. Can some one give me an example how to show more decimals to certain columns if needed.
See if this earlier thread for the same issue helps https://vaadin.com/forum/#!/thread/11019004
If not, please ask clarifications.
Thanks Hayry,
This might be helpful, [Note: below code snippet is by using scala]
class StringToBigDecimalConverter extends
AbstractStringToNumberConverter[java.math.BigDecimal] {
override def getFormat(locale:Locale):NumberFormat= {
val format = super.getFormat(locale)
format.setGroupingUsed(false)
format.setMaximumFractionDigits(5)
format.setMinimumFractionDigits(5)
format
}
override def convertToModel(value:String,
targetType: Class[_<:java.math.BigDecimal], locale:Locale):java.math.BigDecimal=
{
convertToNumber(value, classOf[java.math.BigDecimal], locale).asInstanceOf[java.math.BigDecimal]
}
override def getModelType():Class[java.math.BigDecimal]= {
classOf[java.math.BigDecimal];
}
}