View Full Version : paging grid; need to know page number or start Index of current page

Tina G
25 Oct 2007, 3:07 AM
Hi :

I have a grid with paging capability. I am able to navigate through the pages and load a set of records from server (equal to pagesize).

I want to find out the starting index of the current page. Say when on page 1, the store's startIndex will be 0, on page 2, it will be 1*pagesize, on page 3 it will be 2*pagesize.
I need to know the current page number.

Inputs welcome!

25 Oct 2007, 7:37 AM
It's not doc'd as public, but PagingToolbar.cursor is probably what you want to look at.

5 Jan 2011, 1:23 AM
to get the current page from the grid


5 Jan 2011, 1:57 AM
readPage will return the current value of the number input, not of the current page.

pagingToolbar.getPageData().activePage will return the current page.