Telerik blogs
  • Web

    RadDrag&Drop with a Canvas twist

    A week or so ago I was giving a small presentation and one of the people in the audience had a great question.  They had this old configuration section on their website for laying out something or other that had a lot of different options which could be dragged and dropped using some client-side javascript, but they are looking to move on up to Silverlight and the RadDragAndDropManager seemed to be the perfect candidate for the job.  The only issue with that is the only examples we have online show moving items to and from collections, but in their case...
    August 18, 2009
  • Web

    RadioButton and CheckBox Menu Items with RadMenu for Silverlight

    RadMenu for Silverlight supports simple checkable items, but still does not support radio button items. This feature is scheduled for development and most probably will come with Q3 2009, but until then you have to code it by yourself. Fortunately, this is relatively easy with a proper ViewModel, that contains the radio-button logic: The CommandItem class contains the properties and the logic for a RadMenuItem. It implements INotifyPropertyChanged and its most important property is IsChecked: public bool IsChecked { get { return this.isChecked; } set ...
    June 19, 2009
  • Web

    Scrollable Menu – Workaround with a Multi-Column Menu and RadControls for Silverlight

    RadMenu and RadContextMenu for Silverlight cannot automatically scroll their items if their height exceeds a certain height. We are planning to implement this feature in the near future, but at the moment there are two workarounds for the developers: override the RadMenu control template and add ScrollViewer controls around the ItemsPresenters, or customize the ItemsPanel of the RadMenuItem controls, so the sub-items are displayed in columns. The second option is much easier and looks good enough: The main idea is to replace the RadMenuItem ItemsPanel, that is a StackPanel by default, with a WrapPanel. To set the ItemsPanel property of all...
    June 18, 2009
  • People

    MSDN Northeast RoadShow 2009

    Hi everyone! I attended the MSDN Northeast Roadshow in Waltham, MA yesterday and strongly recommend that anyone in the Augusta, Maine or Farmington, Connecticut areas check out the show when it is in your area within the next week.  Lots of great content ranging from why MVC is not that scary to reasons why you should be looking out for the Silverlight 3 release.  For those of you who are unfamiliar with the event, it's a great opportunity to find out what is new and exciting with the Microsoft development world, dodge colorful question reward bricks (the sound of impact on an unsuspecting crowd member is something...
    June 17, 2009
  • 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