Telerik blogs

Latest

  • Productivity

    OpenAccess, WCF, and a RadGrid (Oh My!)

    I’ve been working on a project that uses OpenAccess ORM as the persistence layer between my app and the database. Since the app is going to be used on both web and client platforms I wanted to add a services layer to serve up the data. Turns out it’s pretty easy to do. So I’ll walk you through a quick demo of how to hook OpenAccess up to WCF services and then consume the data with a RadGrid. Set up the project structure First, create a class library project called Data to hold the data access code. This is where you’ll use OpenAccess to...
    February 14, 2009 14 min read
  • Productivity

    New version of Telerik Trainer

    I am very excited to share with you a preview of the new version of Telerik Trainer! Download it here For those of you unfamiliar with Telerik Trainer, this is a tool that leverages the latest technologies to combine video training with hands on coding and self-paced tutorials. It's beyond a video player - the application binds video with synchronized highlights, topical table of contents navigation, and a code launching feature that opens code files in Visual Studio and automatically navigates to the relevant file and line number. Check here for more info on Telerik Trainer. Together with our ...
    February 12, 2009 2 min read
  • Productivity Reporting

    Bind Your Telerik Reports to XML Data

    One of the cool things about Telerik Reporting is that you can bind it to just about any kind of data source. Regardless of whether your data is stored in a SQL Server database, an XML document, or a simple text file, if you can read it into one of the supported data source types then you can bind it to your report. Since XML is a often used to store data, I thought it might be helpful to demonstrate how to bind your report to the data in an XML file using LINQ to XML. To get started, create a class...
    February 06, 2009 5 min read
  • Productivity

    Saving a few lines of code. Part V - Raising events.

    As you read the title of this post you may ask yourself - Hmmm, raising an event... wasn't that achievable with 1-2 lines of code? How smaller could it get, 0 lines of code? And you're almost right, to raise an event is not such a big deal. Supposing you have an event of type EventHandler. public event EventHandler Clicked;     Typically you have a virtual protected method which raises the event: protected virtual void OnClicked(EventArgs e)   {       if (Clicked != null)           Clicked(this, e);   }    Pretty simple unless you want to be thread safe (well... almost thread safe), then you should add one additional line: protected virtual void OnClicked(EventArgs e)...
    February 03, 2009 2 min read
  • Productivity Document Processing

    Exporting data to Excel using the RadGridView for WinForms

         There usually comes a time for most developers when they need to use the data being displayed in an application, outside of that application.  There are obviously a number of ways you can present data, but it is common to leverage Microsoft Excel.  It provides a similar look and feel to the grid which means minimal reformatting, plus Excel is widely used and therefore most offices should have a version of the software available.       How to get your data into Excel?  The RadGridView offers a couple of options to accomplish this task.  First, you can use the Primary...
    January 28, 2009 3 min read