Customizing an IPagedCollectionView to sort on the server?
I have a PagedCollectionView class that implements the IPagedCollectionView interface so I can use the MVVM model in Silverlight. The problem I'm running into is that sorting of the columns happens on the client side, so only the ten items that are returned 开发者_Python百科get sorted.
Is there another interface my PagedCollectionView needs to implement in order to catch the sorting events and try doing it on the server?
IPagedCollectionView
is implemented in conjunction with implementing ICollectionView
. It's the latter interface that exposes sorting information.
Also, PagedCollectionView
provides a default implementation of IPagedCollectionView
that you can likely leverage.
精彩评论