Results 1 to 2 of 2

Thread: RowNumberer with 'pagingtoolbar' - RowNumberer always starts next page at '1'

  1. #1

    Default RowNumberer with 'pagingtoolbar' - RowNumberer always starts next page at '1'

    I'm using the 'pagingtoolbar' with Grids, and RowNumberer, which shows the line number being displayed on the left hand side of the grid.

    My problem is - say my grid displays 50 items at a time - when the user goes to the second page, RowNumberer starts back a '1' - but really, it should say '51'. Is there a way to change this?

    Thanks in advance ...

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409
    Answers
    716

    Default

    Paging is handled by the following:

    Server should return total records in grid in JSON result
    total: 50 // 50 records in view

    Client should send: (page 1)
    start: 0
    limit: 10

    store.pageSize: 10
    pagingToolbar.pageSize: 10

    reader: totalProperty: total (from above)

    Scott.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •