Articles in this section
Category / Section

How to use drill through action event in JavaScript ReportViewer ?

1 min read

This article describes how to use the DrillThrough event in the JavaScript ReportViewer . You can also refer to the Getting Started with JavaScript ReportViewer from the User Guide, available in the following link:

https://help.syncfusion.com/js/overview

DrillThrough Action Event in JavaScript ReportViewer:

Syncfusion JavaScript ReportViewer supports the DrillThrough event. This has an actionInfo argument and by using this you can pass the report name and parameter values to the child report from the parent report. You can invoke the DrillThrough action event with the help of the drillThrough property by specifying the event name as shown in following code example.

JS

<script type="text/javascript">
        $(function () {
            $("#container").ejReportViewer(
                {
                    reportServiceUrl: '/api/ReportApi',
                    processingMode: ej.ReportViewer.ProcessingMode.Local,
                    reportPath: '~/ReportTemplate/GroupingAgg.rdlc',
                    drillThrough: "OnDrillThroughClick",
                    toolbarSettings: {
                        items: ej.ReportViewer.ToolbarItems.All & ~ej.ReportViewer.ToolbarItems.Parameters
                    }
                });
        });
        function OnDrillThroughClick(senderobj) {               
            senderobj.actionInfo.ReportName = "ChildReport";
        }        
    </script>

Run the Application:

Run the sample application and you can see the output of the Main report and child report of the JavaScript ReportViewer as displayed in the following screenshots:

Main report

Figure 1: Main Report

 

Child report

Figure 2: Child Report

Sample Links:

https://www.syncfusion.com/downloads/support/directtrac/139480/DrillThroughEvent-1793057864.zip





Conclusion

I hope you enjoyed learning how to use drill through action event in JavaScript ReportViewer.

You can refer to JS ReportView feature tour page to know about its other groundbreaking feature representations and documentation, and how to quickly get started for configuration specifications. You can also explore our JS ReportView example to understand how to create and manipulate data.

For current customers, you can check out our components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our other controls.

If you have any queries or require clarifications, please let us know in the comments section below. You can also contact us through our support forums, Direct-Trac, or feedback portal. We are always happy to assist you!

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied