Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am working with vwstyles.xsl to implement custom paging on lists. The requirement I have is to have first and last button on the paging panel but can't work out how to direct the user to the last page as there is no total row count being passed through to the XSLT.

Is this possible with XSLT?

Can I use extension methods so I can hook up C# to the XSL?

Is there any other way of me implementing the required functionality?

share|improve this question
1  
Kindly share the code once you get it works ya.. looking for end button to go to the last page but can't find any reference. I tried to find the total items or rows when using pagination but it limit the query based on the rowlimit. Need to find a way to get the real total rows list when using pagination. –  user5127 Oct 5 '11 at 18:52
    
That is exactly the same issue I am having, doubting whether it is actually possible without a nasty hack –  Burt Oct 6 '11 at 10:19
    
@ixiel: I went ahead and converted your answer to a comment. With a bit more reputation, you will be able to post comments. –  Kit Menke Oct 6 '11 at 13:37
add comment

3 Answers

When you're trying to find the last page can't you count the amount of rows that you have?

<xsl:variable name="RowCount" select="count($Rows)"/>
share|improve this answer
add comment

But you can use xsl to do paging. You can easily use jquery for this google .."Jquery Paging" Hope that helps

share|improve this answer
    
Thanks for the answer, I can get the paging mostly working, the bit I can't get working is the last button that takes you to the last page as the XSL doesn't have a total list row count. Dlo you know if that is possible? –  Burt Oct 5 '11 at 10:33
1  
Post some snippet code Cheers –  naijacoder Oct 6 '11 at 23:24
add comment

You can use the XSLT count() function to count the number of child elements. That should let you generate the number of pages to have.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.