Monday, March 23, 2015

GWT DataGrid refresh on column sorting

GWT DataGrid needs refresh on ListDataProvider when you do sort on column:

sortHandler = new ColumnSortEvent.ListHandler<Client>(dataProvider.getList()) {

    @Override    public void onColumnSort(ColumnSortEvent event) {
        super.onColumnSort(event);        dataProvider.refresh();    }

};

No comments: