Server paging and consuming from Silverlight RRS feed

  • Question

  • In regards to WCF DS paging:

    I presume this is a forward-only approach to data navigation

    For ex., you have a token to get the 'next' data, but you cannot get a token to 'previous' or 'last' ?

    The reason I bring this up, is b/c I haven't been able to fit the Silverlight 3 DataPager control into use with WCF DS paging, and I imagine I would need to get the _entire_ data back to the client for full blown DataPager functionality.


    Monday, July 19, 2010 2:52 PM


  • Hi,

    Yes, server driven paging is forward only. But it's primary purpose is to defend the server from expensive queries.

    If you want to do paging in the UI both ways, you can do so called "client side paging". For this you use the $top and $skip. Let's assume you have a page size 5, then first page is /Entities?$orderby=MyKey&$top=5, second page is /Entities?$orderby=MyKey&$top=5&$skip=5 and so on.

    As long as the client side page size is smaller than the server side page size, the client doesn't have to know about the server pages.


    Vitek Karas [MSFT]
    • Marked as answer by Rybolt Monday, July 19, 2010 5:23 PM
    Monday, July 19, 2010 5:20 PM