PagedTable icon indicating copy to clipboard operation
PagedTable copied to clipboard

PageTable with scroller shows wrong rows

Open consros opened this issue 10 years ago • 1 comments

If the height is set a scroller within the table appears. If user scrolls down and changes page, then wrong rows are shown. Moreover, at the begining of page some of rows are shown once again.

This happens because the initial offset is ignored. Instead of it the internal offset of the PagedTableContainer is used, which is page related. Right would be to use both offsets.

Here is a possible correction for this problem:

@Override
public List<?> getItemIds(final int startIndex, final int numberOfItems) {
    return container.getItemIds(this.startIndex, numberOfItems);
}

-->

@Override
public List<?> getItemIds(final int startIndex, final int numberOfItems) {
    return container.getItemIds(this.startIndex + startIndex, numberOfItems);
}

Please check and commit.

consros avatar Aug 29 '14 10:08 consros

once we add this duplicate rows gone but totalpagecount value get messed up on every next button click. bcz it takes pagelength as 13 default some how from somewhere.

Did u find this issue ??and found any fix for this ?

jungleerohan avatar Jan 20 '17 04:01 jungleerohan