Unanswered Custom SearchResultPager web part

  • 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.


All Replies

  • Monday, May 14, 2012 7:05 AM
     
     

    Hi John,

    Thanks for your post!

    I am trying to involve some one familiar with this topic to do some further research.

    Thanks,
    Simon


    Simon Huang

    TechNet Community Support

  • Wednesday, May 23, 2012 7:33 PM
     
     

    Hi John,

    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?