• .NET Testing & ALM

    Report Books and Parameters with Telerik Reporting

    March 30, 2010 Share
    Telerik Reporting provides a simple, yet powerful, component called the ReportBook that allows multiple reports to be combined into one. Doing so makes displaying, printing, and exporting multiple reports a much simpler task for end users. Providing this type of functionality does leave one question though, "How are report parameters handled?" This entry will focus on providing the answers to that simple question. Click here to download the sample code so you can follow along. Creating a ReportBook ReportBooks are supported in all three environments the ReportViewer supports, WinForms, Silverlight, and ASP.NET. Adding a ReportBook to each of these environments is very similar. This example focuses on using a ReportBook with ...
  • .NET

    Programmatic Initialization of Report Parameter Values in Telerik Reporting Silverlight Viewer

    December 07, 2009 Share
    Usually one may control the report appearance and the data it displays through report parameters. The Silverlight report viewer, just like the other two, offers built-in user interface that enables end users to interact with the reports. Still there are cases when one may further need to control the report definition according to a custom logic that runs in the client application. However, since we have introduced the Silverlight Report Viewer the greatest challenge our clients have faced is that there is no direct access to the report definition in the Silverlight application.   To provide the ability to specify the parameter...
  • .NET

    Filtering with string parameter that allows free user input

    September 17, 2009 Share
    As you probably know, Telerik Reporting comes with built-in parameters and filters. Report parameters allow users to specify or control the data used in a report. They are extremely powerful when used in expressions for filtering, sorting, grouping or even directly provide a value. When used with filters you can limit the number of records in a report based on specified filter rules. If the conditions of the rules are met, the record is included in the report.  Let's suppose we have a string parameter that allows free user input, wired up with a filter. This way the user has the freedom to type any word and the report would be filtered based on the parameter...
  • .NET

    Do not filter on null

    This post might seem like a no brainer, but I've received quite a few inquiries on this matter recently, so decided to post here.  Let's say you have a parameter of Type: DateTime with AllowNull: true and we filter on a field based on the input parameter value i.e.: Expression        Operator      Value ===========   ========  ================================= =Fields.MyField        =            =Parameters.MyParam When we tick the 'null' checkbox, it basically filters the report to find the Fields with Nulls. However one might expect that it just won't filter at all with this setup. And indeed if you do not wish to filter, you should not have to. Then how do you handle "empty/blank" values in such cases and...
  • .NET

    Reporting: How to set default value for a multivalue parameter

    January 16, 2009 Share
    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...