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

Question on decimalPad property in DataSource

$
0
0
We follow the instruction on this page and set some data field of type "float" with the property decimalPad (e.g. to a value of 2)

http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/serverds/DataSourceField.html

But in the final ListGrid, we still see the numbers displayed with no decimal place.

We searched the forum and could not find any discussion on this.

Our DataSource was like this (portion only):

<DataSource
ID="dynDs362043865"
serverType="sql"
progressiveLoading="false"
>
<fields>
<field name="timeDate" type="date" width="110" wrap="true" ><title>Date</title></field>
<field name="app" type="text" width="110" wrap="true" ><title>Application</title></field>
<field name="appProvider" type="text" width="110" wrap="true" ><title>App Provider</title></field>
<field name="totalBytes" type="float" width="110" decimalPad="2" wrap="true" ><title>Total Bytes (Mbyte)</title></field>
<field name="totalBytesPercentInSysTotal" type="float" width="110" decimalPad="2" wrap="true" ><title>% Total Bytes</title></field>
</fields>

More details of our environment are listed below:

1. SmartClient Version: v8.3p_2013-01-15/PowerEdition Deployment (built 2013-01-15)

2. Browser: Firefox

3. Server log: (not applicable)

Viewing all articles
Browse latest Browse all 4756

Latest Images

Trending Articles



Latest Images