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 1 min read
  • Productivity

    Dynamic Query with Telerik OpenAccess

    With the introduction of LINQ the concept of querying data became a first-class language construct in C# and Visual Basic.  LINQ enables to you write type-safe queries which are checked during compile-time. While type-safe queries are fine for certain situations, there might be cases where you want to construct a query on the fly, at runtime, based on certain selections made by the user. This is usually done using a string-based representation of the query. How can this be achieved via LINQ?   The LINQ team at Microsoft provides the Dynamic Query Library which extends the core LINQ API with capability to use...
    December 28, 2009 2 min read
  • 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 2 min read
  • Release

    New release of Telerik Extensions for ASP.NET MVC - now with CDN support

      With the release of RadControls for ASP.NET Ajax Q3 2009 SP1 we introduced built-in CDN support. It was very logical that Telerik Extensions for ASP.NET MVC receive some CDN love as well. Now this is a fact! Go download the current release from here (open source) or here (licensed).   Enabling global CDN support from web.config Add the following XML in your web.config: <configSections> <sectionGroup name="telerik"> <section name="webAssets" type="Telerik.Web.Mvc.Configuration.WebAssetConfigurationSection, Telerik.Web.Mvc"/> </sectionGroup></configSections><telerik> <webAssets useTelerikContentDeliveryNetwork="true" /></telerik>
    December 23, 2009 1 min read
  • Web

    Telerik Silverlight controls and SharePoint 2010

    We just uploaded a video produced by Sahil Malik, a Microsoft MVP and INETA speaker. This video shows how to use Telerik Silverlight controls in SharePoint 2010. The approach demonstrated in this video is Telerik Silverlight controls working with the client object model, in particular RadScheduler talking to the Calendar list.     For more details you can also check Sahil's blogpost at: Telerik Controls with SharePoint 2010 Client Object...
    December 22, 2009 1 min read
  • People

    2009 in review

    When you don't blog regularly, one of the biggest challenges is to find a good topic. With Twitter around, it becomes even more complicated for the people that are not regular bloggers. While I was waiting for something interesting to pop-up as a topic, 2009 almost passed and it gave me the needed opportunity. It feels as if I blinked and it's Christmas Season again.   Before I move on with my overview, on behalf of everyone at Telerik, I would like to wish you and your families a better 2010 – stay healthy, happy and lucky. Thank you for being a part of the...
    December 22, 2009 4 min read
  • Web

    How To: Custom scrolling with RadGridView for Silverlight and WCF RIA Services

    I’m pleased to announce that with our upcoming service pack (Q3 SP2 – middle of January 2010) you will be able to plug your own scrolling logic for RadGridView for Silverlight. I’ve made small demo on how to page DomainDataSource using the grid vertical scrollbar with minimal coding effort:   … <riaControls:DomainDataSource x:Name="DomainDataSource1" QueryName="GetOrder_Details"> <riaControls:DomainDataSource.DomainContext> <web:NorthwindDomainContext /> </riaControls:DomainDataSource.DomainContext></riaControls:DomainDataSource><telerikGridView:RadGridView telerik:Theming.Theme="Summer" scrolling:CustomScrolling.DomainDataSource="{Binding ElementName=DomainDataSource1}" ItemsSource="{Binding Data, ElementName=DomainDataSource1}" IsBusy="{Binding IsLoadingData, ElementName=DomainDataSource1}"...
    December 21, 2009 1 min read
  • Web

    Telerik RadMap for Silverlight – OpenStreetMap provider

    RadMap_OpenStreetMap.zip I am glad to announce that with the release of RadControls for Silverlight Q3 2009 Service Pack 1 RadMap has been updated to support OpenStreetMap provider. It is as easy as setting a single property: MyRadMap.Provider = new OpenStreetMapProvider();   Set the Center and Location properties and you are ready to go. Here is an example of RadMap with our Boston office address in the center: <map:RadMap x:Name="RadMap1" ZoomLevel="13">     <map:RadMap.Provider>         <mapNamespace:OpenStreetMapProvider />     </map:RadMap.Provider>     <map:RadMap.Center>             <mapNamespace:Location Latitude="42.397223" Longitude="-71.254685" />      </map:RadMap.Center> </map:RadMap>    And this is the result   You can find a link to a sample project in the beginning of this blog...
    December 19, 2009 1 min read
  • Web

    How To: Tooltip Row Details with RadGridView for Silverlight

    In my previous blog post I explained how to display RadGridView Row Details with a RadWindow. Several days after the post was published I received a suggestion to create another sample that will be showing Row Details in a mouse-over tooltip fashion. And guess what. Christmas came earlier this year. The full credit for coming up with this brilliant idea goes to my friend and colleague Kalin Milanov, our Front-end Developer. He decided to edit the GridViewRow ControlTemplate and removed the DetailsPresenter from the spot it usually occupies under the cells. He then placed it inside a ToolTip: 1: <ToolTipService.ToolTip> 2: <ToolTip Style="{StaticResource ToolTipStyle}" ...
    December 19, 2009 2 min read
  • Web ASP.NET MVC ASP.NET AJAX

    Using Telerik Extensions for ASP.NET MVC within an ASP.NET WebForms application

    If you really, really like the new and shiny extensions, you can use them in your WebForms application, too! Here are the needed steps: Add references to the following assemblies: System.Web.Abstractions System.Web.Routing System.Web.Mvc Telerik.Web.Mvc The first three are usually in the GAC. Copy the Content and Scripts folders from the extensions’ distribution into your project. The pages which will contain the MVC components will need to inherit System.Web.Mvc.ViewPage. Also, you should mock an MVC environment, like this: protected class ControllerMock : Controller { public ControllerMock(NameValueCollection queryString) { foreach (string param in queryString.Keys) ...
    December 18, 2009 1 min read