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

ListGridField: Sort and Filter By Display Value does not work

$
0
0
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

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 ) );
                }
            } );


Viewing all articles
Browse latest Browse all 4756

Trending Articles