-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
A little quick on the trigger. My first solution reduced the visible number
of rows in the table. Correct solution is to change redrawSelectedRow to
the following:
private void redrawSelectedRow() {
RowFormatter gridRowFormatter = grid.getRowFormatter();
for (int row = 1; row <= this.pageSize; row++) {
if (row == this.selectedRowIndex) {
gridRowFormatter.setStyleName(row, SELECTED_ROW_STYLE);
} else if(row < pageRows.length) {
String customStyle = getRowStyle(pageRows[row - 1]);
gridRowFormatter.setStyleName(row,
customStyle == null ? DEFAULT_ROW_STYLE : customStyle);
}
}
}
Original issue reported on code.google.com by Hermod.O...@gmail.com on 23 Mar 2009 at 11:02