• .NET

    Filtering Custom Types with RadGridView for Silverlight / WPF

    If you want to filter a column that is data-bound to a custom type, you need to make sure that your custom type meets certain criteria. We will use the type Person as an example. public class Person {     private readonly string name;     private int age;     public string Name     {         get { return this.name; }     }     public int Age     {         get { return this.age; }         set { this.age = value;...
  • .NET

    Filtering Collection Properties with RadGridView for Silverlight and WPF

    December 05, 2011 Share
    By default, RadGridView will not be able to filter properties which are IEnumerable. However, with two of its features you can easily add this custom functionality. The first feature you need to use are the Custom Filtering Controls which I have explained in one of my earlier blog posts so I will not go into detail here. The focus of this blog is how to implement the IFilterDescriptor interface so that our data engine can filter your enumerable property. This interface allows you to provide a filtering expression. This expression will be used when the data engine performs the actual filtering. In the...
  • .NET

    Introducing RadDataServiceDataSource for WPF and Silverlight

    It is my pleasure to present you the newest member of the constantly growing family of XAML controls. RadDataServiceDataSource provides seamless integration between an user interface and data coming from a WCF Data Service. The WCF Data Services technology enables the creation and consumption of OData services for the web. If you want to learn more about the relationship between the two, you may read the whitepaper WCF Data Services and OData At-a-Glance. With this new control, you can retrieve, shape and edit data using declarative XAML syntax only. RadDataServiceDataSource provides extensive code-behind API for more advanced scenarios. The QueryableDataServiceCollectionView<T> class, which is internally used...
  • .NET

    An MVVM Approach to Telerik Domain Services for Silverlight

    December 31, 2010 Share
    There are only about 7 hours we have left in 2010 and this will be my last blog post for this year. For those of you who are not familiar with the new RadDomainDataSource control for Silverlight, here is my introductory blog post. This one describes how to load data with the new control and this one is about performing CRUD. Having read these three blogs might lead you to the next logical question: What about MVVM support? I truly believe that every time someone places an UI element or a control in his view model, a baby kitten dies somewhere. So what can...
  • .NET

    Creating CRUD application with RadDomainDataSource for Silverlight

    December 28, 2010 Share
    I will extend my colleague’s blog post series regarding RadDomainDataSource control with an example how to create simple CRUD (Create, Read, Update and Delete) application. For more information how to load data initially you can take a look at this blog post. Along with RadDomainDataSource control Telerik provides codeless solution for CRUD operations powered by WCF RIA Services. The solution is a combination between RadGridView and RadDomainDataSource.   First let’s create a default Silverlight project as following:     Next step is to create ADO.NET Entity data model called Northwind.edmx. For the sake of the example I’ll create this entity model with a Northwnd.mdf...