Telerik blogs

Latest

  • Web

    RadScheduler for Silverlight learning series, part 2: Loading Data Into RadScheduler from RIA Services

    After reading the first part of this series, you should now have a project that is ready to wire up with events.  In summary, last time we: Created a new project with RIA services enabled Created a database to hold appointments Threw that database into an ADO.Net Entity Data Model Used aforementioned entity model in a new Domain Service Class Added a RadScheduler and DomainDataSource to our Silverlight app Now, we get to the fun part and can start wiring up some of the events we set in the last post.  The first thing that we need to do is to...
    September 03, 2009
  • 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