Telerik blogs

Latest

  • Desktop WPF

    Using Compass indicators properties for Telerik's Docking Control for Silverlight and WPF

    Sometimes when using a Docking control and implementing complex UI with it we need to add some custom rules about allowing some panes to be docked in some parts of the application and to disallow them to dock to other parts. As this behavior is quite complex itself, we’ve decided to enable some scenarios to be available in XAML in a declarative way (the more static scenarios) and some scenarios to be available only through the code-behind.   In this post I will guide you through some simple steps that will show you how you could use both approaches. First of all...
    December 29, 2009
  • Desktop WPF

    How To: Easy print and print preview with RadGridView for WPF

    Using FixedDocument, DocumentViewer and PrintDialog you can easily create your own print and/or print preview for RadGridView for WPF. I’ve made two extension methods Print() and PrintPreview() to illustrate how to turn the grid into a print friendly document in few lines of code: … public static void PrintPreview(this GridViewDataControl source) { var window = new Window() { Title = "Print Preview", Content = new DocumentViewer() ...
    December 28, 2009
  • Desktop WPF

    Silverlight/WPF : Custom Legend with RadChart

      One of the less known features supported by Telerik’s RadChart for Silverlight/WPF is the ability to completely abandon the default control layout and build one of your own with no constraints for the number of elements used. The goal of this blog post is to shed some light on this functionality and to demonstrate the most common techniques that can be used to customize the legend. First of all, to build your own custom chart layout you should set the UseDefaultLayout property of the RadChart object to false. Here is the custom layout I prepared: <telerik:RadChart x:Name="RadChart1" UseDefaultLayout="False">             <Grid>                 <Grid.ColumnDefinitions>                     <ColumnDefinition Width="50"/>                     <ColumnDefinition Width="*"/>                 </Grid.ColumnDefinitions>                 <Grid.RowDefinitions>                     <RowDefinition Height="*"/>                    ...
    December 23, 2009
  • Desktop WinForms

    Gmail-like labels in RadGridView for WinForms? No problems!

    As you probably know, RadControls for WinForms are built on top of our own Telerik Presentation Framework. This especially designed framework gives you the ability to extend the existing RadControls to a great level. Today, I am going to share with you how you can plug Gmail-like labels in RadGridView for WinForms (http://www.telerik.com/products/winforms/gridview.aspx). First of all we need the construction blocks for the labels. These blocks are represented by a very important element of our framework – the LightVisualElement. Several RadControls use this element extensively – RadTreeView, RadPanelBar, RadCalendar and RadGridView. The advantage of this element is that it incorporates all essential...
    December 15, 2009
  • Desktop WPF

    WPF RadDocking Overview

    It’s been a while since the Q3 2009 release. Lots of controls have been added in our toolbox for WPF. One of them is considered as a final official release of RadDocking control for WPF. We have made a lot of improvements since the last release of the controls. For example each of the six themes included in the bundle now has different type of appearance when applied to a control. RadDocking is a fully customizable and skinnable control that enhances the power of a layout system. It is providing you with a docking system like the one in Microsoft Visual Studio. You are getting the dockable ToolWindows, a hidden DockingManager control, and a designer to easily create attractive layouts. It is good to mention that the WPF RadDocking code is absolutely compatible with its Silverlight counterpart.
    December 07, 2009