PDA

View Full Version : Paginggridscroller current page



shiaart
1 Mar 2012, 1:00 AM
How can i get current page index, when user scrolls the Paginggridscroller ?
Is there any PageChanged event?

Farish
1 Mar 2012, 1:15 AM
you can get it from the store you are using with paging. The store has a currentPage property:


var currentPage = store.currentPage;

shiaart
1 Mar 2012, 1:48 AM
It works only for non-prefetched pages, when you scroll down, and then go back to the top, the store.currentPage prop is equals to last prefetched page index.