Telerik blogs

Latest

  • Productivity

    LINQ Tip of the week: LINQ and Anonymous types

    Today we have a closer look at using LINQ and anonymous types and it's pros and cons. Consider the case where we want to obtain a subset of data instead of an entire persistent instance. For example, if we want to obtain the contact details of all Customers based in London we would use the following query var query = from c in scope.Extent<Customer>()                    where c.City.Equals("London")                    select new { c.City, c.Address, c.ContactName };   Notice the last line in the above query - select new { c.City, c.Address, c.ContactName } This line creates an anonymous type. Behind the scenes, at compile time, a very simple class is generated automatically. In this case, three...
    May 27, 2021 3 min read
  • Release

    RadControls Silverlight 3 Official with Q2 2009 SP1

    It is official – Telerik RadControls for Silverlight3 are here with the latest 2009 Q2 SP1 release. We did our best to take advantage of all new and exciting features from the latest version of the platform. RadControls now offer a new theming mechanism and you can clearly see the difference when you open our demo examples in Blend. We also added support for .NET RIA Services for all data-bound Telerik Silverlight 3 controls. Check the codeless binding of RadgridView to DomainDataSource to see how it works. The next exciting additions are validation for all input controls and out of browser support so now you...
    May 27, 2021 1 min read
  • Release

    Announcing a new product line - Telerik Extensions for ASP.NET MVC

    It is a great pleasure to announce our new product line - Telerik Extensions for ASP.NET MVC. As the name suggest we are building a new UI component suite targeting the ASP.NET MVC framework. The new product line will not be based on RadControls for ASP.NET Ajax nor will it depend on ASP.NET Ajax or ASP.NET WebForms. No page lifecycle, ScriptManager dependency, viewstate or postback . And did I mention that it would be FREE? Free and Open Source Telerik Extensions for ASP.NET MVC is available as an open source product under the Ms-PL license. For the first time Telerik will be releasing a free...
    May 27, 2021 3 min read
  • Productivity

    Telerik OpenAccess ORM and the Second Level Cache

    As we already mentioned last week, Telerik OpenAccess ORM manages two cache levels – one specific for each ObjectScope instance and another shared by all scopes. The shared cache is generally called the "2nd level cache" or the "L2 cache". Its main job is to hold copies of the database content in memory. The L2 cache is populated during read access and gives fast retrieval of commonly used objects. This could be extremely helpful in multithreaded applications, where every single thread has its own ObjectScope. In order to avoid too many calls from each scope to the relational server, the L2...
    May 27, 2021 3 min read
  • Productivity Reporting

    Medium Trust Support for Telerik Reporting

    A lot of people requested this, so we've put all our efforts into it and even managed to finish it in time for the Q2 service pack that shipped just this Friday - download it if you haven't yet. Please hold on your dismay - deploying an ASP.NET application containing Telerik Reporting on a web host that requires Medium Trust permission level is now a reality. For those of you, who do not know what that means - you probably do not need it, but if you would like to know, check the following "ASP.NET Trust Levels and Policy Files" and "Use Medium Trust in ASP.NET 2.0" documents in MSDN. There...
    May 27, 2021 2 min read
  • Productivity

    How Does the First Level Cache of Telerik OpenAccess ORM Work

    Telerik OpenAccess ORM has two levels of caching. The upper one is a local cache specific for each IObjectScope instance and it is the focus of this post. The lower cache, the second level cache is common for all IObjectScope objects and is used to hold unchanged database content in memory. The values for various fields of the user objects (like a Person instance) are duplicated in the L2 cache. It is populated during read access and gives fast retrieval of commonly used objects. Additionally, the cache can contain complete query results. Note that the L2 cache is not enabled by...
    May 27, 2021 3 min read
  • Desktop WinForms

    Multiple child views with RadGridView for WinForms

    One of the most wanted features related to hierarchy in RadGridView is the support for hierarchy containing one-to-many relations. Now, this is possible by using tabbed child views. We added the feature in our latest release – Q2 2009.     However, RadGridView is not restricted to show only tables. Child views can be used to display any relevant information (e.g. rich text, picture or even a chart). If fact you can use any RadElement or host a control by using the RadHostItem. In the example below I will demonstrate how to do it.   You should follow a few simple steps:   1. First bind the...
    May 27, 2021 4 min read
  • Desktop WinForms

    Building Advanced Layouts With RadSplitContainer

    How it started One of the major disadvantages of the old docking framework was the unintuitive layout mechanism. Operations like resize, re-dock transitions, dock position change were re-setting entire layout scene and all user-defined sizes were lost. Having recognized this drawback and knowing that a prerequisite for a good docking framework is a fine-grained layout system, we put solid efforts in designing and implementing a completely new flexible and powerful, yet simple to understand and easy to use, layout mechanism. Brief Model Overview The design...
    May 27, 2021 3 min read
  • Desktop WPF

    Animating the RadWindow control for Silverlight and WPF.

    We all know that animations are making our applications look more slick. As Silverlight and WPF are platforms that have great support for animations, we want our Silverlight and WPF applications to be more animated and look better.     Today I will show you how to add animations support to the Telerik RadWindow control using one of the most powerful approaches in WPF and Silverlight for extending the functionality of existing components – the attached behavior. We will create two attached properties that take care to run the animations when needed. The good thing is that you can use this approach for...
    May 27, 2021 7 min read
  • Desktop WinForms

    Some Words on the new RadForm and RadRibbonForm

    Among all other new stuff that we introduced in the Q2 2009 release were also the revised RadForm and RadRibbonForm controls. Base on an entirely new approach, these two controls have been rewritten from scratch and expanded to support many features that the old versions did not provide. Moreover, we have been striving to address all performance and painting issues which were a major problem in the old versions and now we are proud to present what we have been doing the last months.   It turned out that customizing a standard Windows Form is not an easy task and once a...
    May 27, 2021 2 min read