Vincent Leung .NET Tech Clips

The latest tech clips from the .NET community

A better way to do Silverlight 3 Sorting & Paging using DomainDataSource & DataPager


 

Silverlight 3 includes PagedCollectionView class, which provides UI-level grouping, sorting and paging functionality for any data source that implements the IEnumerable interface. This works as long as all the data that you need to sort, page are already fetched to the client which could be a slow process and can potentially consumed lots of memory on the client-side. A better solution is to provide Server-side sorting & paging. 

One way to achieve this is to use .net RIA services’ DomainDataSource and DataPager controls which provides automatic server sorting and paging support. For more details check this out: 

Creating applications with .NET RIA Services Part 4 – Adding a DomainDataSource

However, if you are not using .net RIA services, than you will need to implement ICollectionView to handle sorting and IPagedCollectionView to handle paging yourself –> Silverlight 3 Custom Sorting with Paging Support – Manish Dalal’s blog

About these ads

November 3, 2009 - Posted by | RIA Services, Silverlight

2 Comments »

  1. radiative proxy required depends

    Comment by winthropki | July 28, 2010 | Reply

  2. doi power governments intergovernmental

    Comment by nykkobanas | July 28, 2010 | Reply


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: