Telerik blogs
  • Web

    Binding a ComboBox to Enum Values with RadControls for Silverlight

    A common request in our support is to display a combo box, containing all values of a specific Enum. This is fairly easy with RadComboBox for Silverlight - all you need to do is to fill its ItemsSource collection with the Enum values. The best way to do this is to create a view model for the Enum: using System; using System.Collections; using System.Linq; using System.Reflection; namespace SilverlightApplication1 { public class EnumModel { private Type enumType; public IEnumerable Values { get; private set; } [TypeConverter(typeof(TypeTypeConverter))] ...
    June 12, 2009
  • Web

    GridView in ComboBox with RadControls for Silverlight

    Recently we received several requests for an example, demonstrating how to put a virtualized GridView in a ComboBox popup. The best way to do this in my opinion is to replace the ItemsPresenter of the ComboBox with a GridView. There is some plumbing that has to be done, but I managed to separate it in two attached behaviors. The original idea is described in my blog post for TreeView in ComboBox which I recently updated with the latest control template of RadComboBox for Silverlight. The principle is exactly the same with RadGridView and it should work with very minor adjustments with...
    May 18, 2009
  • Release

    Two New RadTips Episodes: RadGrid, Entity Framework, and More!

    I’m happy to announce two new episode of RadTips, a series of screencasts offering tips and tricks for using Telerik's RadControls. If you've missed previous episodes, be sure to check them out on Telerik TV. Each is only a few minutes long and covers a specific feature of the RadControls. Adding a HeaderContextMenu to the RadGrid for ASP.NET AJAX In this episode I show ASP.NET AJAX developers how to use the HeaderContextMenu to perform column-specific operations in the RadGrid. Click here to watch on Telerik TV The video is available for download below. [Video: MP4] Using the Entity Framework with the RadControls for ASP.NET AJAX In this...
    April 24, 2009
  • Release

    New Telerik Trainer sessions for RadControls for WinForms

    We have posted two new Telerik Trainer sessions for our WinForms suite: An Overview of RadCalendar for WinForms, which shows its basic usage incl. setting some of its more important properties, how to use the Special Days collection, and how to style a particular day by using the Visual Style builder. The session is about 10min long and comes with working samples in VB and C# (for both VS2005 and VS2008). Download session (ZIP 17.8 MB). The other session, on RadComboBox for WinForms, is about 15 min long and demonstrates the various autocompletion modes, and how to take advantage of the multi-line text support....
    January 15, 2009
  • Web

    TreeView in a ComboBox dropdown using RadControls for Silverlight

    As far as I can tell from the experience of my colleagues with RadControls for ASP.NET AJAX, one of the common feature requests for RadComboBox and RadTreeView is combining them into one piece. Recently we started to receive similar requests for RadComboBox and RadTreeView for Silverlight. Placing a TreeView in a ComboBox sometimes makes a lot of sense, so I decided to research the best way to do it.   The first, the simplest and most obvious way is to place a RadTreeView as content of RadComboBox: <input:RadComboBox> <nav:RadTreeView  ItemTemplate="{StaticResource ItemTemplate}"  ItemsSource="{StaticResource ItemsSource}" /></input:RadComboBox> This works, but it has one important limitation: RadComboBox cannot...
    November 08, 2008