Opened 10 years ago
Closed 10 years ago
#12832 closed defect (fixed)
Enhanced Grid Paginator: grid loses filter on 'goto page'
Reported by: | frans.van.nieuwenhoven | Owned by: | evan |
---|---|---|---|
Priority: | high | Milestone: | 1.7 |
Component: | DojoX Grid | Version: | 1.6.0 |
Keywords: | EnhancedGrid Paginator | Cc: | |
Blocked By: | Blocking: |
Description
The enhanced grid looses a filter when the page stepper is used to goto a page: all items will display.
To reproduce:
- open dojox/grid/tests/enhanced/test_enhanced_grid_pagination.html
- set page size to 10
- open the browser javasctipt console
- enter:
dijit.byId('grid').filter({Genre: 'Rock'})
- this will limit the item count to 13
- click page 2 in the stepper => filter disappears (item count 100)
I applied a fix to Pagination.js
in the gotoPage: function(page)
function:
change:
this.setQuery(this.grid.query);
into:
this.grid.setQuery(this.grid.query);
Change History (2)
comment:1 Changed 10 years ago by
Milestone: | tbd → 1.7 |
---|---|
Priority: | normal → high |
comment:2 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
(In [25404]) Fixes #12832 !strict don't need to keep another query in pagination scope, just use grid.query