I ran into a problem with lastButton of SimplePager. I have 3 pages in a cellular table, page size = 11 (1 blank entry + 10 entries (with value)), total entry = 26.
I used CustomerPager by expanding SimplePager.
In the first attempt, 1 + 10 entries in the table will be displayed: the "Next" and "Last page" buttons are pressed (the "First and previous" button is disabled), which is correct. But the LastPage button does not work ... :( I do not know what the problem is ... (the event does not fire)
Strange behavior:
@ 1 The last page button only works when visiting the last page (3 pages in my case).
@ 2 Suppose I am on the first page n I went to the second page (total 3 pages in the cell table). at this time, all buttons are on, which is correct. In this case, the last button works, but behaves like the next button
The GWT application integrated into one of our products cannot debug it from the client side.
Maybe the index value is incorrect in the setPage (int index) method of AbstractPager
The code flow is as follows for the last button
or there may be some false values ββfrom the code above (from setPage ())
actual record = 26 and 3 Blank record (1st blank record / page)
There may be a problem with dataSize: |
How can I check the number of pages based on the size of the data?
How can I solve this problem?