Telerik blogs

Latest

  • 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
  • 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
  • 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    ...
  • 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...
  • Desktop WPF

    How to apply different templates to different appointments of Telerik Scheduler for WPF/Silverlight.

    In the upcoming Q2 release RadScheduler  will include a new property called AppointmentTemplateSelector. This property will be included in both  Silverlight and WPF versions of the control. Using it,  you will be able to easily apply different DataTemplate  to the appointments by any custom condition. All you need to do is to create a custom class inheriting from the  DataTemplateSelector class and override the SelectTemplate method.   For...