issue 6
(Increase number of visible rows.) reported by kwchess
- What steps will reproduce the problem?
1. How do I increase number of Rows to be shown on a page
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
I tried increasing DEFAULT_PAGE_SIZE to 15 but I still see only 5 visibile
rows. I need to visually see 15 rows without scrollbar.
What steps will reproduce the problem?
1. How do I increase number of Rows to be shown on a page
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
I tried increasing DEFAULT_PAGE_SIZE to 15 but I still see only 5 visibile
rows. I need to visually see 15 rows without scrollbar.
Mar 23, 2009
issue 5
(Update of issue 4) reported by Hermod.Opstvedt
- 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);
}
}
}
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);
}
}
}
Mar 23, 2009
issue 4
(Number of rows not reset after filter has been applied) reported by Hermod.Opstvedt
- What steps will reproduce the problem?
1. Open example in hosted moed browser
2. Enter a filter and press "Apply filter"
3. Look at log in Hosted mode browser
What is the expected output? What do you see instead?
No Exception
What version of the product are you using? On what operating system?
Please provide any additional information below.
Fixed by adding: this.pageSize=pageRows.length; at the start of the method
redrawRows() in AdvancedTable
What steps will reproduce the problem?
1. Open example in hosted moed browser
2. Enter a filter and press "Apply filter"
3. Look at log in Hosted mode browser
What is the expected output? What do you see instead?
No Exception
What version of the product are you using? On what operating system?
Please provide any additional information below.
Fixed by adding: this.pageSize=pageRows.length; at the start of the method
redrawRows() in AdvancedTable