Hi,
I'm using GWT 2.4. I'm having a trouble getting my CellTable columns
to be sortable. Is there something else to do beyond invoking
column.setSortable? Here is how I'm constructing my table ...
final CellTable<Node> tableWidget = new
CellTable<Node>(KEY_PROVIDER);
...
for (int i = 0; i < headers.size(); i++) {
final String header = headers.get(i);
final int index = i;
final EditableTableCell textCell = new
EditableTableCell(colDataMap.get(index));
final Column<Node, String> column = new
Column<Node,
String>(textCell) {
@Override
public String getValue(final Node tr) {
return
tr.getChildren().get(index).getValue();
}
};
column.setSortable(true);
tableWidget.addColumn(column, header);
} // for
int numRows = table.getChildren().size();
tableWidget.setRowCount(numRows);
tableWidget.setRowData(table.getChildren());
When my table is rendered, the hand cursor appear when I mouse over
the column headings, but there are no arrows next to the column
headings and clicking on the headings doesn't sort anything.
Thanks for any hints on troubleshooting this further, - Dave
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.