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 )
But I still want the sorting capabilities of the CellTable.
Is it possible? Any idea?
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.
getDataGrid().getColumnSortList().clear();
removes the sorting arrow
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.