View Full Version : PageSize plugin for Paging Toolbar cannot work

13 Jun 2014, 1:24 AM
I use a PageSize plugin for Paging Toolbar to change grid's pageSize dynamically.
I'm using the plugin code below:



I plug it to my bbar as

bbar: {
xtype: 'pagingtoolbar',
store: me.store,
displayInfo: true,
displayMsg: this.displayText,
plugins: new Ext.ux.grid.PageSize(),
listeners: {
afterrender : function() {

The bbar's info can be refreshed by pageSize combobox but the grid doesn't be refreshed, the grid's data will not be changed when the pagesize combobox changes.
I think that the function
onPageSizeChanged in plugin code doesn't work. Does anyone know what's wrong?

* refresh the page when the value is changed
onPageSizeChanged: function(combo) {
this.store.pageSize = parseInt(combo.getRawValue(), 10);

Gary Schlosberg
13 Jun 2014, 11:30 AM
Hopefully someone has been down this road and will share, but you might also want to check with the author of the plugin.