views:

27

answers:

1

I've got a silverlight application where I'm using the MVVM approach and retriving data from an oData service. What I'm wanting to do is use the built in data grid and data pager controls to display and move through the returned data. After a couple hours of research, I feel like there is no good built in way to do this. I think it is going to require me writing some custom paging and building my paged queries by myself. Everything I can find about the PagedCollectionView seems to indicate it only works on data that is already cached on the client side. Since I don't want to pull thousands of records from the oData service at once, that won't work. Is there something I'm missing here? Something inherant about the DataServiceCollection or something that allows me to let the data pager handle building the queries automatically?

A: 

Is that an external OData service, or on your own server?

If on your own service, use RIA services instead. Then paging is trivial.

If on another server, implement RIA services anyway, but get your server to fetch the Odata, in a paged fashion, and return via RIA services linq queries.

If you can provide more specific details of the data service and your server setup I will try provide specific details.

Enough already