How to open links to sub-reports in new windows

2 posts, 0 answers
  1. Shawn
    Shawn avatar
    1 posts
    Member since:
    Feb 2016

    Posted 30 Jun 2016 Link to this post


    I have a report with fields that can be clicked to open a sub-report.  I implemented this functionality by selecting the field that I wanted to be "clickable" and then specifying "navigate to report" as the action property.

    The issue is that when a user clicks on the link to navigate to the sub-report, the sub-report loads over top of the current report.  The user is then unable to navigate back to the parent report without having to reenter the parameters and run the report again.

    I'm looking for a way to open the sub-report in a new tab/window but I do not see an option to do so.  There is an option to open a URL in a new window but we don't have a way to pass parameters into the URL which would be needed to populate the sub-report.

    Is there a workaround to navigate to a report and have that report open in a new tab/window?  Our team is using Report Designer so we're unable to create user functions.

    Thanks in advance.

  2. Stef
    Stef avatar
    3610 posts

    Posted 01 Jul 2016 Link to this post

    Hi Shawn,

    The NavigateToReportAction opens target reports in the same viewer, where to get back to the main report you can use the viewer's toolbar (navigation buttons).

    You can use the NavigateToUrlAction to open a new window with other report viewer. To generate a query string, you can set the action's Url via expression like:
    Telerik.Reporting.NavigateToUrlAction UrlAction1 = new Telerik.Reporting.NavigateToUrlAction();
    UrlAction1.Url = "=''+Fields.FieldID+'¶m='+Parameters.Parameter1.Value ";
    textBox1.Action = UrlAction1;

    You can use also a custom function to build the URL.

    I hope this information is helpful.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top