Telerik blogs

Latest

  • Desktop WPF

    How to: Validate data with SL/WPF RadGridView Part I – validating on property/cell level via Data Annotations

    With the next Q3 2009 official release we are introducing a significant improvement to the validation mechanism of the RadGridView control. If we compare the new validation to the previous versions we add another validation layer (Data Layer) and refactoring of the related events. In a series of blog posts I’ll try to clarify this mechanism with several small examples. I’ll start the series with validation for a single cell.   How to: Validate data on a cell (property) level with RadGridView for Silverlight and WPF   The cell validation occurs when a GridViewCell is edited and its new data is about to be committed. At...
    October 27, 2009
  • Desktop WPF

    RadChart for Silverlight/WPF: Multiple Y axes support

    The secondary axes feature has been one of the most frequently requested over the time by our customers and also one of the major new development tasks that found place in our Q3.2009 schedule. Now I’m glad to announce that the wait is near its end. Our development team did their best to not only make it happen but to make it happen in time for the Q3.2009 beta 2 release(later this week). Thus, the most enthusiastic amongst you, will have the chance to grab this early release and play around with this new stuff. Let us have a brief...
    October 13, 2009
  • Web Desktop

    Adding additional power to RadGridView for Silverlight with attached behaviors

    PART II [example: Conditional formatting of cells in RadGridView for WPF and Silverlight]   Lets say we have a list of products and we need to mark higher prices (>15.00)  with a red color. Something like :     First lets try it with RadGridView for WPF : We have to create a small IValueConverter. It will take care to convert the value of the price to the appropriate color: 1: public class PriceToColorConverter : IValueConverter 2: { 3: public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo...
    October 03, 2009
  • Desktop WPF

    Making a Step chart in RadChart for Silverlight and WPF

    So a customer emailed into our office yesterday asking about whether RadChart for Silverlight supported a Step chart type.  Well, while we do have a boatload of chart types already, Step is currently not one of them.  But a Step chart is really just a Line chart with a bit of extra work, right?  With the help of our chart wizard Manol, we were able to show that the LineSeriesDefinition could, in fact, replicate a Step chart.  But that was with setting all points manually and took a bit of thinking to make sure all the steps looked right.  So...
    October 02, 2009
  • Desktop WinForms

    Draggable Series Items In RadChart for WinForms

    A few weeks ago, someone asked me if the RadChart supported dragging the series items around. The simple answer to this question is no, there is no out-of-the-box support for this feature in the RadChart. I was curious though, so I decided to try my hand at making this concept into a reality. What follows is the code I came up with to do it. Figure 1. The Final Result Fields and Constructor In the constructor I am basically generating a bunch of random values to use in the chart. As you can see, I am actually using two series. The ...
    October 02, 2009