[CLOSED] How to get current the PageIndex?

  1. #1

    [CLOSED] How to get current the PageIndex?

    Hi,

    I have a grid that uses paging. I have a combobox that allows the user to change the pagesize. If the user increases the pagesize, I want to start at the same position as before.
    For example, if I have 400 records and a pagesize of 50. The user wants to see record 199, so he is on page 4 right now.
    Now he changes the pagesize to 100, if the store reloads he should be at page 2 in order to see record 199

    So I need the current pageIndex for my calculation.

    As I see in the changelog, .PageIndex has been removed but now there are only Set-Methods.

    Regards
    Last edited by Daniil; Mar 28, 2013 at 11:58 AM. Reason: [CLOSED]
  2. #2
    Hi @blueworld,

    You can get it on client side.
    var pt = App.GridPanel1.getDockedItems("pagingtoolbar")[0];
    
    pt.getPageData().currentPage

    and send to a server as a request's parameter.
  3. #3
    Thank you Daniil, this works fine

Similar Threads

  1. [CLOSED] PagingToolbar (pageindex) not updating
    By mcfromero in forum 1.x Premium Help
    Replies: 14
    Last Post: Mar 20, 2012, 7:36 PM
  2. Replies: 1
    Last Post: Jul 26, 2011, 12:56 PM
  3. PagingToolbar.PageIndex doesn't work
    By YuanChien in forum 1.x Help
    Replies: 2
    Last Post: Jul 20, 2011, 7:22 AM
  4. Replies: 2
    Last Post: Sep 29, 2010, 8:51 PM
  5. reset gridpanel pageindex to 0 after new filter
    By javadzarrin in forum 1.x Help
    Replies: 1
    Last Post: Aug 22, 2010, 8:29 AM

Tags for this Thread

Posting Permissions