2
votes

I would like to remove the sorting arrow from a header of a CellTable. (the one in the red circle below, which is from the GWT showcase : http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellTable)

arrow celltable

But I still want the sorting capabilities of the CellTable.

Is it possible? Any idea?

2

2 Answers

7
votes

Untested and probably a bit of a hack, but you could try overriding the default style to return blank images. Extend Hilbrand's earlier solution to override the ImageResources that the CellTable uses:

public interface TableResources extends CellTable.Resources {
    @Source("blank.jpg")
    ImageResource cellTableSortAscending();

    @Source("blank.jpg")
    ImageResource cellTableSortDescending();
 }

Create 'blank.jpg' and put it in the same resources package as this interface.

-2
votes

getDataGrid().getColumnSortList().clear();

removes the sorting arrow