New to Telerik Reporting? Download free 30-day trial

How to Set ReportSource for NavigateToReport action

This article includes details how to specify a target report for a Navigate to Report (Drill-through) Action. You will need a Report Source object.

Set the Report Source through the Report Designer

  1. In Design view, right-click a report item to which you want to add a drill-through action and then click Properties.

  2. In the item's Properties dialog box, click Action.

  3. Select Navigate to Report. Additional section appears which allows you to select a ReportSource.

  4. In the Choose a Report Source dialog, select how you would navigate to the report, For this example we would use Type Report Source , click that option and select the report that you would like to navigate to. If you have to specify parameters for the drillthrough report, follow the next step.

  5. Click Edit Parameters button - Edit Parameters dialog appears. Click New. In the Parameter Name column select the name of the report parameter in the drillthrough report. In the Parameter Value , type or select the value to pass to the parameter in the drillthrough report.

Set the Report Source programatically

    Telerik.Reporting.TypeReportSource reportSource = new Telerik.Reporting.TypeReportSource();
    reportSource.TypeName = "ReportLibrary1.Report1, ReportLibrary1, Version=, Culture=neutral, PublicKeyToken=null";
    reportSource.Parameters.Add(new Telerik.Reporting.Parameter("OrderNumber", "SO43659"));

    Telerik.Reporting.NavigateToReportAction reportAction1 = new Telerik.Reporting.NavigateToReportAction();
    reportAction1.ReportSource = reportSource;
    textBox1.Action = reportAction1;

{{source=CodeSnippets\VB\API\Telerik\Reporting\ActionSnippets.vb region=AddNewNavigateToReportSnippet}}

    Dim reportSource As New Telerik.Reporting.TypeReportSource()
    reportSource.TypeName = "ReportLibrary1.Report1, ReportLibrary1, Version=, Culture=neutral, PublicKeyToken=null"
    reportSource.Parameters.Add(New Telerik.Reporting.Parameter("OrderNumber", "SO43659"))

    Dim reportAction1 As New Telerik.Reporting.NavigateToReportAction()
    reportAction1.ReportSource = reportSource
    textBox1.Action = reportAction1

The Standalone Report Designer includes only XmlReportSource and UriReportSource options due to the format of the produced reports. In Visual Studio Report Designer you can use all available Report Sources.

If the report will be displayed in an HTML5 Viewer or Silverlight ReportViewer, the main report is rendered in HTML (XAML respectively) and it is loaded at the client. The rendered content contains a link rendered for the NavigateToReportAction, that will not be valid and working if the target report is specified via InstanceReportSource or XmlReportSource.

In this article