Skip to content

Commit

Permalink
Issue-577 Pagination: Incorrect "rowsPerPage" displayed on startup
Browse files Browse the repository at this point in the history
With the following settings:
rowsPerPage: 50,
pageSizeOptions: [25, 50, 100]

The default selection in the displayed drop list is still 25.

Fixes dojo#577

Signed-off-by: Gordon Smith <[email protected]>
  • Loading branch information
GordonSmith committed May 3, 2013
1 parent d0e680f commit 32641c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function(_StoreMixin, declare, lang, Deferred, on, query, string, has, put, i18n
var sizeSelect = put(paginationNode, 'select.dgrid-page-size'),
i;
for(i = 0; i < pageSizeOptions.length; i++){
put(sizeSelect, 'option', pageSizeOptions[i], {value: pageSizeOptions[i]});
put(sizeSelect, 'option', pageSizeOptions[i], { value: pageSizeOptions[i], selected: this.rowsPerPage === pageSizeOptions[i] });
}
this._listeners.push(on(sizeSelect, "change", function(){
grid.rowsPerPage = +sizeSelect.value;
Expand Down

0 comments on commit 32641c1

Please sign in to comment.