• .NET

    GroupBox and Label Controls and Tooltip Themes in 2011.Q1 RadControls for Silverlight and RadControls for WPF

    These are controls that exist in one form or another in most of the other suites so we had some client requests to add them in our Silverlight / WPF suite too. In WPF you have GroupBox, Label and ToolTip in the presentation framework however we had no themes for them. In Silverlight there is only ToolTip. GroupBox and Label We have created GroupBox and Label in Telerik.Windows.Controls assembly. In WPF they extend the existing GroupBox and Label controls and only add themes. In Silverlight they extend HeaderedContentControl and ContentControl. How you can use them: <Grid x:Name="LayoutRoot" Background="#FF222222">     <telerik:GroupBox Header="Personal Information" Width="300" HorizontalAlignment="Center" VerticalAlignment="Center">         <Grid>             <Grid.ColumnDefinitions>                 <ColumnDefinition Width="Auto" MinWidth="80" />                 <ColumnDefinition Width="*" />...
    February 22, 2011
  • .NET

    Highlighting Adjacent Points with RadChart for WPF

    There are times when we run into a scenario in which we need point selection on a chart.  Luckily, RadChart for WPF and Silverlight already has this feature - but what if you need to find the closest point to where you selected on a chart?  And what if you have multiple chart series that you are doing this with?  Normally, this would be a bit of a challenge as this involves figuring out where the user clicked, what is around it, etc. Luckily for us, we have charting wizards like Manol Donev on our team and an aggressive release cycle here at Telerik. The...
    February 02, 2011
  • .NET

    Controlling TreeView’s ExpanderStyle Dynamically

    Sometimes the TreeView is used in scenarios where the expander style must be styled in custom fashion. Prior 2010 Q3 SP1 there was no easy way to dynamically change the expander style of the TreeView or particular item. TreeView’s ExpanderStyle So we decided to extend the functionality provided by the TreeView. Prior this enhancement changes to the ExpanderStyle property during runtime would not affect already visible items. The property now supports dynamic values and data binding. This way you can easily change the style of the expander of all items in the hierarchy during runtime. Item’s ExpanderStyle Working only with the TreeView’s ExpanderStyle...
  • .NET

    Integrating Telerik OpenAccess ORM Spatial Data with RadMap

    You read that right!  In Q3 2010 OpenAccess ORM introduced new SQL Spatial Type support.  Which is awesome for those of us that love playing with spatial data :)  I started playing around with the new OA spatial support, and decided what better way to to demonstrate the capabilities than to output the data on to a map?  This blog covers how I accomplished this task :)   First We Need Spatial Data Some of you may already have spatial data sitting in a SQL Server DB, but if not never fear!   You can use the great Shp2Sql utility, made by Morten Nielsen, to import a...
    January 14, 2011
  • .NET

    TreeView BringIntoView

    Quite often TreeView is used in scenarios where a particular item should be displayed on the screen. You may want to display some item when the tree is initially shown on the screen or when a new item is added. These scenarios look simple but are a bit tricky because you have to wait until the TreeView loads and then make your desired actions. Waiting for Loaded Event TreeView provides the BringIntoView functionality in several forms: you can call BringIntoView from the tree itself and bring a child item; get some TreeViewItem by calling GetItemByPath and call BringIntoView upon this item container;...