Welcome to the IBM Collaboration Solutions Community IQJam
UsernamePassword
Reset Password | Register
   
Home | Tags | Help
How do you refresh a pager linked to a repeat control? 
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? 
Domino Development / Domino Designer
Paul Withers - over 3 years ago |  |  | Viewed 93 times

There are 2 answers

0votes
Paul, this should really "just work" ...
 
Can you post some condensed XPage code so I can see how you have it laid out ?

Jeremy Hodge - over 3 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community
0votes
It looks like the cause is that my pager is in its own custom control, so not the same design element as the element it's controlling. As you say, as soon as I put the pager directly into the same custom control as the element it's for, it works.
 
So much for my idea of a single custom control for a pager, already defined with all the styling I want, and just passing the various properties in. 
Paul Withers - over 3 years ago | 
Voting
Vote on the answer to show whether you think the answer is correct or useful to the rest of the community.

Answers with more votes are more visible to the rest of the community

Experts for Domino Development / Domino Designer