Telerik blogs

Latest

  • Web

    RadScheduler for Silverlight learning series, part 1: Getting started with RIA Services

    One of the newest (and arguably greatest) controls to be added to the RadControls for Silverlight suite recently has been RadScheduler.  With it, you can take care of everything from scheduling your day to planning what track you want to attend at events.  This versatile control allows you a lot of freedom to customize how you interact with it and just what you can do with appointments, which is what this series is going to be all about.  I won't spoil the future installments just yet (although they'll include using RadDragAndDrop in RadScheduler, albeit in a different way than this...
    September 01, 2009
  • Web

    Using the RadDocking control with Prism

    Prism can be thought of as a set of libraries that help Silverlight applications to be scalable and testable. It has a number of features (modularity, view regions and commanding) that help with this. A common scenario is to use Prism with a Docking control. You may want to create a shell with a Docking control and to mark some of the pane groups as regions and to use panes (or their content) as views. In this article we will create a sample application that accomplishes this scenario with the RadDocking control for Silverlight. We will need one additional step to...
  • Web

    TreeView in ComboBox, take 3 (Silverlight 3, WPF and RadControls)

    In my previous article on the same topic I described how to replace the ItemsPresenter of RadComboBox with a RadTreeView. It was as simple as updating the control template. Unfortunately the controls’ selection synchronization relied on a bug in RadComboBox that we recently fixed – the control was able to have a value in its SelectedItem property, that was not present in its Items collection. Now, in order to workaround this new problem, we have to either inherit RadComboBox, or create an attached behavior that will allow us to get the SelectedItem of the inner RadTreeView. The code you have to write...
    August 28, 2009
  • Web

    Self-reference hierarchy with Telerik TreeView for Silverlight

    Often we need to display in a TreeView flat, self-referencing data, loaded from a database, that has properties ID and ParentID (or similar) that define the hierarchy. The Telerik TreeView for ASP.NET can automatically bind itself to such data, but our Silverlight TreeView cannot do this out of the box. Fortunately, this “limitation” can be easily avoided with a simple value converter. There is a little trick, however – each data item needs a reference to its parent collection. Consider the following very simple data object: public class DataItem : INotifyPropertyChanged { private string text;   public int ID { get; set; } public int ParentID {...
    August 27, 2009
  • Web

    Mark working hours and days in different colors with RadScheduler for Silverlight

    We received a couple of questions on how some of the days and hours in the different views of RadScheduler can be customized. The answer of this question is in the attached application illustrating how working hours and days can be  marked in orange.  The solution includes 3 easy steps : Create a custom theme using the default RadScheduler' theme. Create a ValueConverter returning the right color depending on the hour/day. Find the style applied to every hour(timeslot) and apply the converter to the Background property. To create a custom theme you can follow the steps...