Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DataSource/ListGrid integer to boolean conversion

    Using SmartGWT 3.1p-2012-11-23.

    I have this:
    Code:
    final DataSourceField dataSourceField = new DataSourceField (
        "enabledFlag",
        FieldType.BOOLEAN);
    
    ... and ...
    
    final ListGridField listGridField = new ListGridField (
        "enabledFlag",
        "Enabled");
    listGridField.setType (ListGridFieldType.BOOLEAN);
    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"?
Working...
X