Get the current page in GridView

Hi everybody,

I’m trying to get the current page of GridView, after the user clicked on the pager, in a callback function for afterAjaxUpdate.

I can get pageVar, but not the current page number.

The current page is highlighted by a class "pager selected" in the pager, but I do not know how to retrieve the pager id.

And after, I have to parse the attribute href of the link.

Do you have some idea?

Thanks

Why not try beforeAjaxUpdate?

Thanks PeRoChAk, I’ve not see the parameters for this function.

the callback function for beforeAjaxUpdate has two parameters: id (the id of the grid-view) and options (the ajax call options). So I can parse the url to get the page number.