We have been working with various versions of the PagedList , however these pagedlists are not Wcf friendly. They do not serialize. Does anyone have a good way to get paged data across Wcf? (Including properties such as TotalRecords of the datasource.)
We have been working with various versions of the PagedList , however these pagedlists
Share
We worked out a solution to simplify the current PagedList to something that is more serializable and a little more geared to our solution. Instead of creating a custom List/Collection, we created a class that contains the list/collection.
Previously we were losing the custom properties of the pagedlist when it was deserialized on the client side. It still had all the items in the list, but it was missing the properties.
This is based on code by Troy Goode which I believe is based on some unreleased Microsoft MVC code. More info can be found here: http://www.squaredroot.com/2009/06/15/return-of-the-pagedlist/
and then the actual implementation through the following extension: