Telerik blogs

Latest

  • Desktop WPF

    WPF/Silverlight : RadChart - solving issues with the X axis labels.

    As you may already know, since the invention of the chart control there are some cornerstone cases when most of the implementations do not perform well. One of these is the arrangement of labels on the horizontal axis and especially when placed in a limited space(overlapping labels). This problem is clearly visible on the image below: Several ways to work around this problem have been developed and during the last months we put efforts to implement most of them. Our recent Q2.2009 release of RadChart for WPF/SL offers the following AxisX properties: LabelStep - when set to n, this property will make only...
    July 14, 2009 1 min read
  • Desktop WinForms

    Binding to custom fields with RadScheduler for WinForms

    We just finished working on the Q2 2009 release of RadControls for WinForms. One of the best things about releases is that we get to show off the cool new stuff that we managed to get done. One of my favorite features is the full support for binding to custom fields in RadScheduler. Yes, this means that you finally can have RadScheduler bound to that email field in your data source. And do you know what’s the best part? It’s fairly easy: 1. If you have not already done this, add your custom field to your data source. 2. You will need a custom...
    July 07, 2009 3 min read
  • Desktop WPF

    WPF / Silverlight: RadChart and BindableLinq

    RadChart data binding provides a simple and consistent way for applications to present and interact with data. In many cases the data that you work with is a collection of objects and you need the UI to update automatically whenever the datasource gets updated. WPF and Silverlight provide a built-in implementation of a data collection that implements the INotifyCollectionChanged interface and achieves the desired effect. However, when you try to blend the ObservableCollection<T> implementation with some LINQ queries, the situation gets a bit more complicated and most probably the out-of-the-box result will not match your expectations. Let us take the...
    June 17, 2009 2 min read
  • Desktop WPF

    RadChart for WPF/SL Automatic Data Binding to Nested Collections

    Seamless operation with diverse data sources is paramount for any data visualization solution. RadChart already supports automatic data binding to IEnumerable sources as seen in this example: http://demos.telerik.com/silverlight/#Chart/DataBinding. With the growing of Silverlight data sources and support for various data services, however, a new scenario is becoming more common: data binding to a collection of collections or nested collections. I am glad to announce that a new feature is coming in the Q2 2009 release which will make this automatic. Consider the following code snippet: private void FillWithData() {     var list1 = new List<double>() { 1, 3, 5, 7, 9 }; //Odd Numbers     var list2 = new List<double>() { 2, 4, 6, 8, 10 }; //Even Numbers    ...
    June 08, 2009 2 min read
  • Desktop WPF

    Enhancing the Localization Support of RadControls for Silverlight and WPF

    With the Q1 2009 SP2 release of RadControls for Silverlight we introduced an enhancement of the LocalizationManager class. Two new properties were added to enrich the localization support in the suite - DefaultCulture and DefaultResourceManager. With the new properties you no longer have to always create an instance of the LocalizationManager. Here is a brief description of the two properties: DefaultCulture A static property of type System.Globalization.CultureInfo. Use this one to change localized values without changing the UI culture of the current thread. DefaultResourceManager A static property of type System.Resources.ResourceManager. Use this one to change localized values using a new resource manager, i.e. a new resource file. Example: The attached...
    May 30, 2009 1 min read