Telerik blogs

Latest

  • 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
  • Web Desktop

    Adding additional power to RadGridView for Silverlight with attached behaviors

    PART III [example: Column Groups  A.K.A. Merged Column Headers]   Recently we have had a lots of requests for a feature referred as column groups / merged column headers / common headers for two or more columns - something like :   Here we have three ordinary columns ( L, W, H)  with regular column headers . There is also an additional common header – ‘Dimensions’ which spans over the three regular headers. Unfortunately RadGridView for Silverlight and WPF does not support this internally (yet).   The good news is that RadGridView is a flexible and easily extendable control so we can easily attach a new column grouping behavior....
    December 04, 2009