If anyone is interested in paging with the RadDataPager and Cocktail, here is something I threw together for a project:
uploads/449/PagedItemsCollection.txtThis is an example of how I used it:
_pager = _unitOfWork.Products.Pager(new SortSelector(typeof(Product), Product.EntityPropertyNames.UPC), 100); Products = new PagedItemsCollection<Product>(_pager);
|
Products is defined on my repository as a IPagerRepository<Product>
In order to return the true item count / page count, it needs to be initialized using the Initialize() method on the collection. This gets the last page, and then goes to the first page in order to populate the required fields.
In your xaml you can simply do something like:
<telerik:RadDataPager Source="{Binding Products}"/>
|
Hope this helps someone!