PDA

View Full Version : Get current page in view/data.store



Tim Siney
3 Jul 2007, 12:24 AM
Does anyone know of a way to get the current page (or start param) associated with a view (bound to a data store) with a paging toolbar bound to it? I need to find this in order to create and load a new data store based upon that value.

tryanDLS
3 Jul 2007, 9:18 AM
Not sure what you're looking for. You could call the (currently) private getPageData fn of PagingToolbar - look at the source to see the object it returns.

Tim Siney
4 Jul 2007, 10:18 AM
Thanks for the pointer tryanDLS. The following worked:


pagingToolbar.getPageData().activePage

Just to clarify, I needed to create a new data store and use the current page as one of the params.