Telerik blogs
  • Web

    Cannot discover WCF services in your Silverlight application?

    If you try to add service reference in your Silverlight application and you simply cannot discover any services in the solution using the Add Service Reference tool here is the way how to solve it. Note that the issue occurs both in Silverlight 2 and Silverlight 3 Beta.     1. Uninstall your Silverlight tools for Visual Studio      2. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE or the place you have installed your Visual Studio environment.     3. Delete the file Microsoft.VisualStudio.ServicesProxy.dll      4. Install again Silverlight tools for Visual Studio and note that your file will be created again. There seems to be something wrong with the installer of Silverlight tools, which...
  • Web

    Using IValueConverter to format values in RadControls for Silverlight

    It’s often necessary to modify or format some of the raw data received by your data tier application or other data sources. In Silverlight, you can create your own value converter and introduce your own formatting rules. In this blog post I will create a simple value converter that formats double values, and then use it with a RadComboBox. First, let’s create a class that will represent our data source. The equivalent of this class in more realistic scenario would be a proxy class generated by your data tier application in case you use RIA services.     public class Data : List<Item>       {           public Data()           {               this.Add(new Item() { Name = "Ferrari", Price = 120000 });               this.Add(new Item() { Name = "Mercedes", Price = 100000 });...
    April 29, 2009
  • Web

    Attaching a ContextMenu on a TreeView with RadControls for Silverlight

    Telerik RadControls for Silverlight provide a very powerful ContextMenu control, that supports right click, modifier keys and that can be easily attached to any visual element. In this article I will show how to attach RadContextMenu to a data-bound RadTreeView and perform actions on the clicked treeview items, depending on the selection in the context menu. For simplicity, here I will use a treeview, bound to a static collection, but it can be easily extended to load its items from a web service: <UserControl x:Class="ContextMenuInTreeView.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ContextMenuInTreeView" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"> <UserControl.Resources> <local:DataViewModel x:Key="ViewModel" /> <telerik:HierarchicalDataTemplate x:Key="TreeViewItemTemplate" ItemsSource="{Binding Children}"> <TextBlock Text="{Binding Text}"> <telerikNavigation:RadContextMenu.ContextMenu> <telerikNavigation:RadContextMenu> <telerikNavigation:RadMenuItem Header="New Child" /> <telerikNavigation:RadMenuItem Header="New Sibling" /> <telerikNavigation:RadMenuItem Header="Delete" /> </telerikNavigation:RadContextMenu> </telerikNavigation:RadContextMenu.ContextMenu> </TextBlock> </telerik:HierarchicalDataTemplate> </UserControl.Resources> <StackPanel Background="White" DataContext="{StaticResource...
    April 27, 2009
  • People

    Telerik sponsors the first ever world open, Silverlight game development contest

    Mashooo.com announced the first ever, world open, Silverlight game development contest. It is an open "no holds barred" style competition, meaning that people from around the world are free to participate and there are no theme limitations. You can just bring your talent and zest for Silverlight game development and show the world what you can do. The contest will begin on March 18, 2009 and last for around 3 months. As a contributor to this contest Telerik provides several prizes including various licensed packages - Telerik Premium Collection, RadControls for Silverlight and WPF, and RadControls for Silverlight. For more details you can refer...
  • People

    Being new to Silverlight

    Keeping track of new technology is quite a tedious job.  In fact, if you try to catch up with all hot trends in software development you probably will end up having a job as a full time blog reader. In contrast, most software developers are always anxious about stretching their fingers on some actual coding. But the beginning is always the hardest part, even more if you are not patient enough or haven’t had time to watch videos and spent hours reading tutorials. In case you are coming from a different programming background, you are certainly used to specific methods...
    April 17, 2009
  • Web

    Cannot discover WCF services in your Silverlight application?

    If you try to add service reference in your Silverlight application and you simply cannot discover any services in the solution using the Add Service Reference tool here is the way how to solve it. Note that the issue occurs both in Silverlight 2 and Silverlight 3 Beta.     1. Uninstall your Silverlight tools for Visual Studio      2. Go to C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE or the place you have installed your Visual Studio environment.     3. Delete the file Microsoft.VisualStudio.ServicesProxy.dll      4. Install again Silverlight tools for Visual Studio and note that your file will be created again. There seems to be something wrong with the installer of Silverlight tools, which...
  • Web

    Using IValueConverter to format values in RadControls for Silverlight

    It’s often necessary to modify or format some of the raw data received by your data tier application or other data sources. In Silverlight, you can create your own value converter and introduce your own formatting rules. In this blog post I will create a simple value converter that formats double values, and then use it with a RadComboBox. First, let’s create a class that will represent our data source. The equivalent of this class in more realistic scenario would be a proxy class generated by your data tier application in case you use RIA services.     public class Data : List<Item>       {           public Data()           {               this.Add(new Item() { Name = "Ferrari", Price = 120000 });               this.Add(new Item() { Name = "Mercedes", Price = 100000 });...
    April 29, 2009
  • Web

    Attaching a ContextMenu on a TreeView with RadControls for Silverlight

    Telerik RadControls for Silverlight provide a very powerful ContextMenu control, that supports right click, modifier keys and that can be easily attached to any visual element. In this article I will show how to attach RadContextMenu to a data-bound RadTreeView and perform actions on the clicked treeview items, depending on the selection in the context menu. For simplicity, here I will use a treeview, bound to a static collection, but it can be easily extended to load its items from a web service: <UserControl x:Class="ContextMenuInTreeView.Page" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:ContextMenuInTreeView" xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls" xmlns:telerikNavigation="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Navigation"> <UserControl.Resources> <local:DataViewModel x:Key="ViewModel" /> <telerik:HierarchicalDataTemplate x:Key="TreeViewItemTemplate" ItemsSource="{Binding Children}"> <TextBlock Text="{Binding Text}"> <telerikNavigation:RadContextMenu.ContextMenu> <telerikNavigation:RadContextMenu> <telerikNavigation:RadMenuItem Header="New Child" /> <telerikNavigation:RadMenuItem Header="New Sibling" /> <telerikNavigation:RadMenuItem Header="Delete" /> </telerikNavigation:RadContextMenu> </telerikNavigation:RadContextMenu.ContextMenu> </TextBlock> </telerik:HierarchicalDataTemplate> </UserControl.Resources> <StackPanel Background="White" DataContext="{StaticResource...
    April 27, 2009
  • People

    Telerik sponsors the first ever world open, Silverlight game development contest

    Mashooo.com announced the first ever, world open, Silverlight game development contest. It is an open "no holds barred" style competition, meaning that people from around the world are free to participate and there are no theme limitations. You can just bring your talent and zest for Silverlight game development and show the world what you can do. The contest will begin on March 18, 2009 and last for around 3 months. As a contributor to this contest Telerik provides several prizes including various licensed packages - Telerik Premium Collection, RadControls for Silverlight and WPF, and RadControls for Silverlight. For more details you can refer...
  • People

    Being new to Silverlight

    Keeping track of new technology is quite a tedious job.  In fact, if you try to catch up with all hot trends in software development you probably will end up having a job as a full time blog reader. In contrast, most software developers are always anxious about stretching their fingers on some actual coding. But the beginning is always the hardest part, even more if you are not patient enough or haven’t had time to watch videos and spent hours reading tutorials. In case you are coming from a different programming background, you are certainly used to specific methods...
    April 17, 2009