Mar 19, 2012, 7:26 PM
Ext:PagingToolbar & ComboBox PageSize
I am in the process of porting a new application from v1.2 to v2.0 and am finding a couple of issues.
In my v1.2 code I added a ext:combobox with 5, 10, 25, 50, 100 items to the ext:PagingToolbar so the user could select how many items to display on the page. I then added a listener so when an item was selected the pagesize was reset and the grid was refreshed. The handler looked like this:
This page is performing GridPanel SQL Paging and I had it working perfectly based on help from:
http://forums.ext.net/showthread.php...large-Datasets
In my v1.2 code I added a ext:combobox with 5, 10, 25, 50, 100 items to the ext:PagingToolbar so the user could select how many items to display on the page. I then added a listener so when an item was selected the pagesize was reset and the grid was refreshed. The handler looked like this:
<Select Handler="#{PagingToolbar}.pageSize = parseInt(this.getValue()); #{PagingToolbar}.doLoad;/>
In v2.0 the PagingToolbar no longer recognizes PageSize, but the store does so I changed the handler to say:
<Select Handler="#{GridStore}.pageSize = parseInt(this.getValue()); #{GridStore}.doLoad;/>
That didn't work, so I tried a couple of other things without succes. Any thoughts.This page is performing GridPanel SQL Paging and I had it working perfectly based on help from:
http://forums.ext.net/showthread.php...large-Datasets
Last edited by cwolcott; Mar 19, 2012 at 7:29 PM.