I've added a pager to my repeat control. I want it to do a partial refresh, so I've set partialRefresh="true". This refreshes the element that the pager is for, but doesn't update the pager itself. So when I click to go to the next page from page 1, the contents of the repeat update to show the detail from page 2, but the pager still shows page 1. So I can't get back to page 1.
I tried setting the pager for a panel that incudes the pager, but it won't let me do that because the panel doesn't contain a data element.
Jeremy Hodge and Tommy Valand have shown code on their blogs for piggy-backing on the partial refresh code, and that sort of works. The code I have is in the attachment - this is a whole custom control.
It allows you to continue paging (without using the refreshLimiter field, the pager breaks and won't work at all after the first click). It also updates the styling and visibility of links when you click the first time, but not subsequently. (So clicking next page from page 1 disabled page 2, it enables the page 1, previous and first links; next time you click, everything still looks the same).
Has anyone got any idea how to either refresh the panel automatically or change the styling following the partial refresh?