Telerik blogs

Latest

  • Desktop WPF

    Transpose or just rows as columns

    A common scenario when displaying tabular data is to flip the axis so your rows becomes columns and vice versa. This can be easily achieved when you know the shape of your data. For example imagine we have a Customer class with 3 properties:  Name, Age and JobCode. Let’s say that we have 5 customers in our data repository. If we want to select just the names we can do something like this: IList<Customer> customers = Customer.GetAll(); var names =     new         {             Customer1 = customers[0].Name,             Customer2 = customers[1].Name,             Customer3 = customers[2].Name,             Customer4 = customers[3].Name,             Customer5 = customers[4].Name         }; Imagine that another Customer is added and suddenly...
    May 27, 2021 2 min read
  • Desktop WPF

    Working with a simple RadGauge for WPF

    Presenting data to users can be done in a variety of ways, but gauges offer a unique way to present data with elegance.  Gauges are easily recognized by most users since they see them on a daily basis.  Think about when you drove to work this morning, you probably looked at your car dashboard which may have looked similar to the picture below.  You knew your speed, fuel status and a number of other important metrics at a glance.  Well, the RadGauge for WPF gives you the ability to implement this same powerful concept in your applications In this post, I...
    May 27, 2021 2 min read
  • Desktop WPF

    Binding RadGridView Controls Together using CellElements

    Our dear friends from Falafel Software (the creators of Telerik Trainer, among other great things) have posted a cool blog on Binding RadGridView Controls Together using CellElements. I would suggest it to any one using RadGridView to WinForms!   Thanks, Rachel!...
    May 27, 2021 1 min read
  • Desktop WPF

    Setup a simple RadChart for WPF

    To get started working with any control, I find it useful to begin with a fresh project.  So below you will see that I have very simple XAML for my WPF application which adds a RadChart to the form.  In this post, I want to demonstrate the basic setup and binding of data to the RadChart. <Window x:Class="CreateABasicChart.Window1"      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"      Title="Window1" Height="484" Width="750" xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">...
    May 27, 2021 2 min read
  • Desktop WPF

    WPF / Silverlight: RadChart and MVVM

    While reviewing the daily portion of blog posts today one article at Delay’s blog here caught my attention – customizing the MS chart control via re-templating and the MVVM design pattern in order to achieve different colorization of the bar series items in a single series. We have discussed similar functionality some time ago but it seemed like a very non-mainstream scenario and based on our experience with the ASP.NET / WinForms chart it was rarely requested feature so we decided we can go without it for the time being. However, once I read the article I started thinking what it would...
    May 27, 2021 2 min read