Telerik blogs

Latest

  • Productivity

    Visual Studio Tip: Creating Your Own Code Snippets

    I recently blogged about using code snippets as a shortcut to writing more code in less time. In this post, I'm going to walk you through the steps to create custom snippets that you can install into Visual Studio for use in your own projects To get started, let's take a look at the anatomy of a snippet. A snippet is nothing more than an XML file, with a .snippet extension, containing configuration settings. If you open up the file foreach.snippet (located in "<Visual Studio installation directory>\VC#\Snippets\1033\Visual C#") you'll find the following XML, which defines the foreach snippet: As you can see, the XML used to...
    May 27, 2021 8 min read
  • Productivity

    Image caching in PDF

    Over the past few days I worked on an image caching mechanism in the PDF Rendering Extension and I am happy to announce that the achieved output size reduction was more than significant. The Problem When a report contains the same binary image many times, the PDF Rendering Extension has no way of knowing that it is actually one and the same and renders it many times thus wasting disc space. For an illustration of this case imagine that you have your company's logo in the page header and your report is 200 pages long. The Solution: Enter Cyclic Redundancy Check I've implemented a central...
    May 27, 2021 3 min read
  • Productivity

    Visual Studio Tip: Using Code Snippets

    A few weeks ago I blogged about creating your own reusable templates for Visual Studio. One of my favorite things about Visual Studio is that it offers a lot of great ways for developers to improve the development experience (and productivity) by adding many extensibility points in the IDE. Now developers have the option of adding on to existing features of Visual Studio with templates and macros, or integrating completely unique features directly into the IDE with add-ins. One of these extensibility features, snippets, adds a ton of value to developer productivity and is incredibly easy to use. Snippets are small, parameterized...
    May 27, 2021 3 min read
  • Productivity

    Show me your IsNumeric() and I'll show you mine

    I was innocently writing a piece of code today and the need arose to check if an input type is a number. Naturally I started looking for such a method inside the .NET classes. After all for a framework which has more than 380,000 methods it will only be logical to have at least one which will do something as basic as this. Guess what? .NET does not ship with such a public method. Whaaaa? But do stay with me, please! It gets better. Armed with Reflector I decided that even if there is no such public method there must be a private one at...
    May 27, 2021 1 min read
  • Productivity

    Visual Studio 2008 Intellisense and Telerik.Charting

    By default the RadControls installer adds the Telerik.Charting assembly to the GAC on the machine where the package is installed, as the Telerik.Charting assembly is used by more than one package - RadControls for ASP.NET AJAX and RadControls for Winforms. So, let's consider an example -- create a new web site and use at least one control from the suite. When you drag a control from the toolbox Visual Studio will automatically copy Telerik.Web.UI.dll to site's Bin folder. Telerik.Web.UI assembly refers to Telerik.Charting assembly. But as long as Telerik.Charting is in the GAC it will not be copied to the...
    May 27, 2021 2 min read