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

FloatItem with setDecimalPad not work as expected.

$
0
0
version : Smart GWT Pro : v9.0p_2013-08-24/Pro Deployment
env : any

well, this is a really simple use case for smartGWT

Code:

DynamicForm d = new DynamicForm();
FloatItem f = new FloatItem("w");
f.setDecimalPad(2);
d.setFields(f);

......

f.setValue(100);

it always show 100 instead of 100.00 which I expected.

however, following code(smartclient version) works

Code:


isc.DynamicForm.create({
    width: 300,
    fields: [
        { type:"float", value : 100, decimalPad : 2}
    ]
});

Am I missing something ?

Viewing all articles
Browse latest Browse all 4756

Trending Articles