WebDocumentViewerConfigurationBuilder.RegisterWebDocumentViewerDrillThroughProcessor<T>() Method
Registers a custom drill-through processor in a web application.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AspNetCore.Reporting.v24.1.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
public WebDocumentViewerConfigurationBuilder RegisterWebDocumentViewerDrillThroughProcessor<T>()
where T : class, IWebDocumentViewerDrillThroughProcessor
Type Parameters
Name | Description |
---|---|
T | A custom SQL queries validation service that implements the ISqlDataSourceWizardCustomizationService interface. |
Returns
Type | Description |
---|---|
WebDocumentViewerConfigurationBuilder | A WebDocumentViewerConfigurationBuilder that can be used to further configure the Web Document Viewer services. |
Remarks
To provide drill-through functionality to web reports, implement the IWebDocumentViewerDrillThroughProcessor interface. To use a custom drill-trough processor in your application, call the RegisterWebDocumentViewerDrillThroughProcessor method at the application startup.
using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
var builder = WebApplication.CreateBuilder(args);
builder.Services.AddDevExpressControls();
builder.Services.AddMvc();
builder.Services.ConfigureReportingServices(configurator => {
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
viewerConfigurator.RegisterWebDocumentViewerDrillThroughProcessor<customProcessor>();
});
});
var app = builder.Build();
Note
To process mouse events related to report elements on the client, handle the client-side PreviewClick event.