Opened 9 years ago
Closed 8 years ago
#14180 closed defect (patchwelcome)
EnhancedGrid - Pagination: grid.setQuery() works not properly with pagination
Reported by: | elvis | Owned by: | Evan |
---|---|---|---|
Priority: | high | Milestone: | tbd |
Component: | DojoX Grid | Version: | 1.6.1 |
Keywords: | grid pagination | Cc: | |
Blocked By: | Blocking: |
Description
The pagination bar can not be updated correctly if filter grid data by call grid.setQuery() when the current page is not first page, e.g., there is a grid with 100 items, and rows per page are 10; Steps:
- jump the page to 3rd,
- Call grid.setQuery() to filter the grid data, assume there would be only 5 items leave after filtering;
Expect: pagination bar should be updated and only show one page Observed: the pagination bar still show there are 10 pages and current page is 3rd page
Change History (3)
comment:1 Changed 9 years ago by
comment:2 Changed 8 years ago by
comment:3 Changed 8 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
I cannot repeat this with Dojo 1.7 EnhancedGrid? - it correctly updates page stepper size on setQuery().
However, it's still not working properly, I think, as current page is not reset to first page.
Scenario:
Expected: page 1 is selected.
Observed: page 3 is selected.