Tuesday, May 08, 2012 10:46 AM
I have to develop a custom SearchResultPager web part. What I want to do is to always set
MaxAfterCurrent + MaxBeforeCurrent= 10 with always MaxAfterCurrent taking precendence.
For example lets say you are on the 6th page and there are only 10 pages then
MaxAfterCurrent should automatically change to 4 and MaxBeforeCurrent should change to 5.
Now lets say you move onto the 7th page adn there are only 10 pages then
MaxAfterCurrent should automatically change to 3 and MaxBeforeCurrent should change to 6.
Meaning the sum of these two figures should be 10. Is there any easy way to get this done?
I tried to modify the SearchPagingWebPart but the problem is there is no way to figure out howmany pages are there.
Monday, May 14, 2012 7:05 AM
Wednesday, May 23, 2012 7:33 PM
Could you please give more details on how you modify SearchPagingWebPart?
Why do you have to limit the total pages to 10? Or it's just an example?
Do you specify number of results per page? Can you get total number of results?