Skip to content

Update of issue 4 #5

@GoogleCodeExporter

Description

@GoogleCodeExporter
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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions