Telerik blogs

Latest

  • Web

    Displaying images stored in MS SQL with RadGridView for Silverlight

    There are different ways to store images in a SQL database. In our little demo  we have the images placed as binaries in an image type column in a MS SQL table.. As you may know Silverlight works with a limited range of image formats(PNG and JPG). Therefore I have prepared a small sample database with a few jpeg images inside.   Silverlight being a client platform does not have direct access to the SQL server. It needs some server-side code to fetch the data. For the purposes of this demo I have used a WCF service  and Linq To Sql to connect to the database...
    May 27, 2021 1 min read
  • Web

    RadGridView for Silverlight and WCF RIA Services Part II: Basic Editing Support

    In my previous blog post I have demonstrated how to display master-details data in an asynchronous manner with RadGridView for Silverlight and WCF RIA Services. I have decided to refactor the sample project a little bit and add some very basic editing support. Here is the changes I have made to the sample project: I have recreated the ChinookService to support editing. I have encapsulated the details grid into a new user control called AlbumsControl. I have added a “Submit Changes” button below the details grid. I got rid of the IValueConverter that used to create the albums DomainDataSource and defined everything in...
    May 27, 2021 2 min read
  • Web

    Asynchronous Master-Details with RadGridView for Silverlight and WCF RIA Services

    Inspired by Brad Abrams’ marvelous series of blog posts, I have decided to create a simple project demonstrating how to harness the enormous power of RIA Services with Telerik RadGridView for Silverlight. I have decided to use the new Chinook database after reading this wonderful post by Tim Heuer explaining how to work with relational data in the RIA Services paradigm. Make sure you have this database installed on the default instance of your SQL Server 2008 Express or you will have to modify the connection string as needed. In one of my previous blog posts I have thoroughly explained How To Display Hierarchical Data with...
    May 27, 2021 4 min read
  • Web

    How To: Populate RadGridView for Silverlight distinct filters asynchronously using WCF RIA Services

    With our upcoming service pack (Q3 2009 SP2) you will be able to populate distinct values asynchronously using the DistinctValuesLoading event. To achieve this you can assign any INotifyCollectionChanged collection for distinct values ItemsSource and RadGridView will update the UI immediately on any change. I’ve made small demo on how to achieve this using WCF RIA Services and RadGridView bound to DomainDataSource with DataPager – in this case the grid distinct values are populated from the entire collection server-side not only from the current downloaded page:   server-side: public List<DistinctValue> GetDistinctValues(string propertyName) { var list...
    May 27, 2021 1 min read
  • Web

    Application Library Caching in RadControls for Silverlight

    As people become more aware of the fantastic things you can do with Silverlight, they’ve also realized one of the downsides of this can be increased XAP size.  The default way that Silverlight handles a XAP is to include all the required assemblies into that single compressed file.  This isn’t that bad when you’re working with a barebones Silverlight project, but once you start adding in different controls or 3rd party assemblies you are increasing your XAP size quite a bit in some cases.  And as we all know, a larger XAP leads to longer load times, and although people have...
    May 27, 2021 4 min read