Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Accessing SharePoint Data wit... > Filtering and Sorting the Data

Filtering and Sorting the Data

The whole idea of paging is to handle large data sets, yet if there were thousands of contacts in the Contacts list, users would quickly tire of paging through hundreds of grids full of data. A filtering feature allows the user to type a few characters of the contact’s information to quickly narrow down the list of choices. In addition, users often like to click the grid headings to sort the data to their liking. Both of these features have been included in the full ContactsGrid Silverlight application.

An AutoCompleteBox from the Silverlight Toolkit (http://silverlight.codeplex.com/) has been added above the DataGrid so users can type a filter string to narrow down the data set. The Populated event fires if the user pauses more than 250 milliseconds while typing, as specified in the MinimumPopulateDelay property. When this happens, the code updates the grid with a new filter for a very interactive user experience. The added controls are shown in Listing 9.15.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint