Telerik blogs

Latest

  • Productivity Reporting

    Dynamically Loading Telerik Reports with MEF

    So I've been spending some time lately learning to use one of the powerful new features of .NET 4.0, the Managed Extensibility Framework (MEF). Using MEF, I thought it would be neat to create an application that allows you to dynamically load Telerik Reports from an assembly without having to recompile your application. Here is how I set it up. Contracts When setting this application up, I wanted to be able to define contracts on my reports so that I could import them into a ReportManager class when the application starts up. However, I didn't want my report objects to be ...
    May 27, 2021 2 min read
  • Productivity

    Dynamic Sorting of Reporting Crosstabs Using a Custom Aggregate Function

    Customers often ask questions about how to sort the rows of a table or a crosstab by a specific column, when the column is chosen dynamically according to a certain criteria or specified directly by the end user. This can be trivially accomplished for a table, because the exact number and names of the individual columns is previously known and fixed. In most cases it is simply a matter of specifying an appropriate sorting expression to the table. On the other hand, sorting a crosstab by a specific column is not so simple to accomplish. The crosstab generates its rows and...
    May 27, 2021 8 min read
  • Productivity

    Playing with aspx page cycle using JustMock

    In this post , I will cover a test code that will mock the various elements needed to complete a HTTP page request and  assert the expected page cycle steps. To begin, i have a simple enumeration that has my predefined page steps: public enum PageStep {     PreInit,     Load,     PreRender,     UnLoad } Once doing so, i  first created the page object [not mocking]. Page page = new Page(); Here, our target is to fire up the page process through ProcessRequest call, now if we take a look inside the method with reflector.net,  the call trace will go like : ProcessRequest –> ProcessRequestWithNoAssert –>...
    May 27, 2021 2 min read
  • Productivity Reporting

    How to create Self-Hosted Telerik Reporting WCF Service in 9 easy steps

    With the 2010 Q1 SP1 release of Telerik Reporting we have introduced Self-Hosted Reporting WCF Service. In the following blog we are explaining how to use our new feature. First lets highlight the advantages of the Self-Hosted services: Easy to use: With only a few lines of code you have your service running. Easy to debug: Debugging WCF services that are hosted in a self-hosted environment provides a familiar way of debugging, without having to attach to separate applications that activate your service. Easy to deploy. Flexible: You can easily control the lifetime of your services. Supports all bindings and transport. For the service...
    March 10, 2025 3 min read
  • Productivity Testing

    StarEast Kicks off Today with Telerik on Board

    We are excited to take part in the premier testing event of the year – StarEast, which takes place in Orlando, Florida, April 25-30. Telerik is a platinum sponsor and exhibitor of this year’s conference. Watch Telerik booth @ StarEast on video See more photos Telerik team will be showcasing our recently introduced automated testing tools (The official premiere of Telerik new automated testing division took place at DevConnections a couple of weeks ago – watch it on Telerik TV). If you plan to be at StarEast, make sure to stop by Telerik booth #10 for a live ...
    May 27, 2021 1 min read