DrillThroughContext Class

Provides information about drill-through navigation.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v20.1.Web.dll

Declaration

public class DrillThroughContext
Public Class DrillThroughContext

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:

  1. 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.

  2. 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>
  3. 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.

Inheritance

See Also