Telerik blogs

Latest

  • Productivity Reporting

    Reporting: How to set default value for a multivalue parameter

    Generally when you want to set a default value for a parameter, you use the Value property of the parameter (this.ReportParameters["MyParam"].Value), but what to set when you want all values to be selected by default  i.e you have a multivalue parameter? You can do that by providing an ArrayList containing all your values to the report parameter Value property. For consistency of the Tips & Tricks series, I am going to use the project from the Using Report parameters UI to sort by column blog post. Let's make the SortByColumn parameter accept multivalues by setting the MultiValue property to True. We...
    May 27, 2021 2 min read
  • Productivity Reporting

    "The strange case of Adobe Acrobat" or why do images in Telerik Reports get fuzzy when exported to PDF

    First, I would like to wish you all Happy New Year! Hope it brings you everything you have asked for! Now up to today's words (post) of wisdom: In the last couple of days a few people reported that images placed in Telerik Report, which normally look ok, start looking fuzzy when exported to PDF. We got scared for two reasons:  This has not been reported prior to our latest release We've introduced new rendering mechanism in the latest release When you combine those, you cannot help but feel that we have somehow messed things up. Fortunately, after a quick investigation, the problem proved...
    May 27, 2021 2 min read
  • Productivity

    Understanding Where to Set Connection Strings in OpenAccess

    When you start working with OpenAccess, one of the first tasks you're going to face is the need set a connection string to your database. And odds are, the connection string you're going to start with is not going to be the connection string your going to use on your production server. It might not even be the connection string your going to use in your test environment. Point is, you need to be able to store multiple connection strings and easily "cue" OpenAccess to use the correct connection details at runtime. Fortunately, OpenAccess makes this easy.   UNDERSTANDING OPENACCESS CONNECTIONS First things first:...
    May 27, 2021 4 min read
  • Productivity

    Saving a few lines of code. Part III - The power of monads

    I won't go into detail about how you could use the maybe monad to save a few lines of code as Daniel Earwicker already blogged about it so you'd better read his post. Basically using the IfNotNull extension method you'll be able to replace lines of code like these: string[] url = SplitUrl(urlString); RecordCompany company = Music.GetCompany("4ad.com");     if (company != null)   {       Band band = company.GetBand("Pixies");       if (band != null)       {           Member member = band.GetMember("David");             if (member != null)               return member.Role;       }   }   return null;    with the following: return Music.GetCompany("4ad.com")...
    May 27, 2021 1 min read
  • Productivity Testing

    A Vote for Extensibility in Test Automation Solutions

    I hope I haven’t confused anyone mentioning the weak points of test automation in my previous post. The gained experience however indicates the importance of looking into test automation based on straight-forward and easily maintained solutions. That’s a problem people have been trying to solve for more then a decade now. In the current post I’d like to get your attention to a key of successful test automation via using the tools extensibility. Nowadays there are plenty of test automation solutions especially for the well-known platforms like ASP.NET Web. Should you consider automate your testing activities, you will probably ...
    May 27, 2021 3 min read