Hello,
is there a bug in ListGridFields? I have a column where I replace values via CellFormatter and I want to sort and filter by the display value. The method "setSortByDisplayField" seems not to work. Any Idea or solution?
Thanks
Andy
SmartGWT: 4.1p latetst
is there a bug in ListGridFields? I have a column where I replace values via CellFormatter and I want to sort and filter by the display value. The method "setSortByDisplayField" seems not to work. Any Idea or solution?
Thanks
Andy
SmartGWT: 4.1p latetst
Code:
final LinkedHashMap<String, String> nameList = maps.getRightNames();
ListGridField nameField = new ListGridField( "ident", "Name" );
nameField.setWidth( "25%" );
nameField.setSortByDisplayField( true );
nameField.setCellFormatter( new CellFormatter()
{
@Override
public String format( Object value, ListGridRecord record, int rowNum, int colNum )
{
return nameList.get( String.valueOf( value ) );
}
} );