Telerik blogs

Latest

  • 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...
    May 27, 2021 3 min read
  • 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 {...
    May 27, 2021 4 min read
  • 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...
    May 27, 2021 2 min read
  • Web

    Using WCF for Silverlight Development with Telerik OpenAccess

    digg_url = "http://www.stephenforte.net/PermaLink,guid,e137f5a7-7bea-4722-9359-5f830d95e691.aspx";digg_title = "Using WCF for Silverlight Development with Telerik OpenAccess";digg_bgcolor = "#FFFFFF";digg_skin = "normal";digg_url = undefined;digg_title = undefined;digg_bgcolor = undefined;digg_skin = undefined; Microsoft’s Silverlight 3.0 is a great new platform for building line of business applications. With every new technology advancement, we always seem to lose something. With Silverlight we lose the dirt simple data access since Silverlight does not support System.Data.SQLClient and talking to a database directly. This forces us into a service oriented architecture and an asynchronous model. While this is definitely a best practice, it sometimes takes a little getting used to. With Silverlight we have to wrap up our data access layer into WCF services. (Or Astoria, RIA Services, or something similar.) It is also pretty standard to use some kind of ORM like the Entity Framework...
    May 27, 2021 5 min read
  • Web

    On Demand Translators for Silverlight: File Your Request Now

    You are probably aware that one of the great new features coming up with the WebUI Test Studio v2.0 is the Silverlight automation support! Yes, that’s correct – you will be able to record all your tests against any Silverlight application as easy as you currently generate the ASP.NET tests. As you might expect we are also working on the RadControls for Silverlight translators. They will let you automate the RadControls for Silverlight components out-of-the-box. I’ve just captured a snapshot of the RadTreeView translator providing some helpful verification tasks. It is taken from the live demo here. While organizing ...
    May 27, 2021 2 min read