Telerik blogs
  • Desktop WPF

    How - to: Bind to IsExpandable Property of GridViewRow in RadGridView for WPF with Attached Behaviors.

    Attached behaviors give you the opportunity to go far beyond the build-in functionality and to create one of your own. You are free to associate an action with an event or a property value. All you need is the assembly that comes with Expression Blend - System.Windows.Interactivity.dll. In our case here the goal will be to create a behavior that enables us to bind to the property of the RadGridView’s rows – IsExpandable. Normally you do not need to do nothing more but to set it to the value you want. However, if it is necessary to use it after...
    June 03, 2010 2 min read
  • Desktop WPF

    How - to: Automatically re-order, re-sort and re-group RadGridView (Silverlight and WPF) on change of the underlying DataSource.

    RadGridView for Silverlight and WPF supports sorting, grouping, filtering and editing. However, if a column is sorted for example and edited afterwards, we expect the newly-edited item to find its way in the sorted GridView. But it does not, unless “coded” to do that. So, what we want to achieve is to make the Grid aware of the changes thus enabling it to organize its elements correctly, corresponding to the requirements of the user.  Therefore, the expected behavior of the application will be the following: In order to achieve the desired result, we need to take the following steps: 1. Create Business Object There...
    May 18, 2010 3 min read