Telerik blogs
  • Release

    PerspectiveRotation and MappedLight Transitions preview of Telerik Q3 2010 - RadControls for Silverlight

    Source Here is the beta preview of 2 highly customizable transitions we are releasing with Q3 2010. The PerspectiveRotationTransition uses 3D transformation to display its animations. You can set the direction, center and the easing of the rotation. When combined these settings can grant you live and impressive transitions. The MappedLightTransition blends each pixel from the old content with the new one. What is interesting there is that it uses a grayscale map to determine which pixels blend first and which go last. There is a lot of grayscale thumbs on the web and some may be found in the attached project. The pixel shader...
    October 14, 2010 3 min read
  • Release

    Using Shapefiles with RadMap

    Since the introduction of RadMap many customers have expressed a need to load shapefiles onto it.  We are adding native support for shapefiles in the Q3 Release, along with vastly improving the performance of information, and dynamic layers.  However, the beta is still a few weeks away, and I had a need for loading shapefiles this week, so I put this quick example together. How to do it Shapefile parsing in this demo is handled by the reader available in the ESRI Contrib project.  When we make the Q3 release you will be able to switch over to our reader by changing about...
    October 01, 2010 2 min read
  • Web ASP.NET MVC

    RadChart for Silverlight in ASP.NET MVC Application

    The purpose of this blog post is to show how to incorporate RadChart for Silverlight in an ASP.NET MVC application. Manol has already shown how to do this for ASP.NET and things are not much different for ASP.NET MVC. Let’s start with a simple Silverlight application with a single RadChart. For simplicity, I will populate it with a list of numbers, you can also use any of the techniques, supported by RadChart. The code is as simple as this XAML: <telerik:RadChart x:Name="RadChart1" /> And C#: RadChart1.ItemsSource = new double[] { 3d, 4d, 6d };   I will create two write-only properties of the Silverlight user control -- ShowItemLabels and SeriesType. They are marked with  ScriptableMemberAttribute so...
    October 01, 2010 2 min read
  • Web

    How to: Databind Telerik’s ToolBar

    In this post we will go through a scenario for databinding the RadToolBar control. Here is the end result: And the demo project with everything included: ToolBarMVVM.zip How to databind the ToolBar? The ToolBar is an ItemsControl and can be databound to any IEnumerable, but it is preferable to bind it to an observable collection since any changes in it will be reflected by the ToolBar. Since there is no ToolBarItem, because ToolBar may contain variety of other controls, we will use DataTemplateSelector class to help us determine the template for each item inside the ToolBar: public class ToolBarTemplateSelector : DataTemplateSelector     {         public override DataTemplate SelectTemplate(object item, DependencyObject container)         {             if (item...
    September 28, 2010 3 min read
  • Web

    How to: Telerik’s TabControl for Silverlight

    Let’s go through implementing several scenarios for the TabControl with quick, short explanations:    1. How to databind the TabControl?    2. How to enable drag-rearrange of items?    3. How to animate rearranging items?    4. How to add a Close Button to the TabItems using a Command?    5. How to animate content changes?    6. How to add a “New Tab” button when databound?    7. How to animate item add / removes? Here is the end result:    And the demo project with everything included:  tabcontrol-howto-demos.zip And of course the details, in short - How to databind the TabControl? The TabControl is a standard ItemsControl and can be databound to...
    September 28, 2010 9 min read