Quantcast
Viewing all articles
Browse latest Browse all 7205

How to implement a drill-down feature for an ASP.NET MVC web report

This example demonstrates how you can implement a Drill-Down feature for a report displayed in the ASP.NET MVC DocumentViewer extension.

IMPORTANT NOTE:
Starting with version 15.1, our Reporting Suite provides the Drill-Down functionality out of the box. So, use the approach demonstrated in the How to: Create a Drill-Down Report help topic instead of using the approach demonstrated in this code example.


The main idea of this approach is to store the expanded state of report categories. As this is a web application, a Session is used to store it. Then depending on the category's expanded state its product list is shown or hidden. The DetailReportBand.BeforePrint event handler is used for this purpose.


To make the expand/collapse button working in a web report its HtmlItemCreated event handler is used to add required HTML attributes to it. When the expand button is clicked a client-side function is executed and a callback is sent to the CallbackPanel. In the controller, the expanded state of report categories is updated, and the report is updated.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>