DrillThroughContext Class
Provides information about drill-through navigation.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer
Assembly: DevExpress.XtraReports.v19.2.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Remarks
You can click on the report data displayed in the Document Viewer or in the Report Designer Preview to show another report with related data (drill-through).
You can implement drill-through navigation in a web application as follows:
Create an object that implements the IWebDocumentViewerDrillThroughProcessor interface. The IWebDocumentViewerDrillThroughProcessor.CreateReport method accepts the DrillThroughContext object, which contains custom data related to the clicked element (the DrillThroughContext.CustomData property), and provides access to the displayed report.
Call one of the following methods at application startup to register a custom drill-through processor:
ASP.NET MVC ASP.NET Core DefaultWebDocumentViewerContainer.RegisterWebDocumentViewerDrillThroughProcessor<T> WebDocumentViewerConfigurationBuilder.RegisterWebDocumentViewerDrillThroughProcessor<T> To get data related to the element being clicked, handle the client-side PreviewClick event.
Note
The complete sample project is available in the following DevExpress Examples repository on GitHub: How to provide drill-through functionality to web reports.