Using SmartGWT 3.1p-2012-11-23.
I have this:
If the field coming back from the server is a boolean, things work as expected.
However, when the field coming back from the server is an integer with a value of 1, the value presented on the screen is "false".
Is there something special I should do to tell DataSource/ListGrid/family to handle an integer 1 as boolean "true"?
I have this:
Code:
final DataSourceField dataSourceField = new DataSourceField (
"enabledFlag",
FieldType.BOOLEAN);
... and ...
final ListGridField listGridField = new ListGridField (
"enabledFlag",
"Enabled");
listGridField.setType (ListGridFieldType.BOOLEAN);
However, when the field coming back from the server is an integer with a value of 1, the value presented on the screen is "false".
Is there something special I should do to tell DataSource/ListGrid/family to handle an integer 1 as boolean "true"?