Announcement

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

    ListGridField cellFormatter bug

    Hi,

    I use the latest nightly build smartGWT 2.5 17-05-2011, GWT 2.2, Firefox 4

    I have defined a ListGridField as follows:
    Code:
    ListGridField roleField = new ListGridField("userGroupId", i18nConstants.settingsTree_userManagement_userGrid_systemRole());
    roleField.setOptionDataSource(DataSource.get("userGroupsDS"));
    roleField.setValueField("id");
    roleField.setDisplayField("name");
    roleField.setAlign(Alignment.LEFT);
    roleField.setCellFormatter(new CellFormatter() {
      public String format(Object value, ListGridRecord record, int rowNum, int colNum) {
        return getRoleDisplay(value);
      }
    });
    The grid shows the value converted by a formatter correctly.

    But this ListGrid has
    Code:
    listGrid.setShowFilterEditor(true);
    In the header grid filter there is a combo which you can filter values with. This combo doesn't use the cell formatter at all.
    I believe that the value in the filter should match values presented in the column.

    Cheers,
    Martin
Working...
X