Opened 8 years ago

Closed 8 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 8 years ago by evan

Milestone: tbd1.7
Priority: normalhigh

comment:2 Changed 8 years ago by evan

Resolution: fixed
Status: newclosed

(In [25404]) Fixes #12832 !strict don't need to keep another query in pagination scope, just use grid.query

Note: See TracTickets for help on using tickets.