Ext:PagingToolbar & ComboBox PageSize

  1. #1

    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:

    
    <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.
  2. #2
    Use this code
    
    <Select Handler="#{GridPanel1}.store.pageSize = parseInt(this.getValue(), 10); #{GridPanel1}.store.load();" />
    Please see
    https://examples2.ext.net/#/GridPane...rayWithPaging/
  3. #3
    Thanks Vladimir. I new there was an example with Page Size, but I couldn't find it. the page size reset works just fine now.

Similar Threads

  1. [CLOSED] PageSize property of ComboBox control does not work
    By T3rryChan in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Jun 15, 2012, 7:37 PM
  2. Replies: 0
    Last Post: Jun 11, 2012, 2:59 AM
  3. Replies: 4
    Last Post: May 29, 2012, 4:36 PM
  4. Replies: 2
    Last Post: Oct 21, 2010, 7:29 PM
  5. Dynamically changing PagingToolBar's PageSize
    By r_honey in forum 1.x Help
    Replies: 8
    Last Post: Jan 22, 2009, 7:26 AM

Posting Permissions