Quantcast
Channel: SmartClient Forums
Viewing all articles
Browse latest Browse all 4756

Decimal precision in ListGrid

$
0
0
I am trying to limit the number of decimals in a number pulled from a datasource in my SmartGWT application.

I am not sure if I should be doing so in the datasource xml file, in the listgridfield, or where I should be doing it.

I have a field in my datasource that is of type float

Code:

<field name="compensatedValue" type="float" title="Calculated" customSelectExpression="collectedValue * multiplier + offset" />
Is there an attribute I can use in that code to set it to a maximum of 3 decimal places? Or should it be set somehow in the ListGridField declaration?

Thanks

Viewing all articles
Browse latest Browse all 4756

Trending Articles