Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IReportParametersPanelClientSideModelGenerator Interface

In This Article

A class used to generate a client-side model for the Standalone Report Parameters Panel component.

Namespace: DevExpress.XtraReports.Web.ParametersPanel

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

#Declaration

public interface IReportParametersPanelClientSideModelGenerator :
    IWebDocumentViewerClientSideModelGeneratorBase<ReportParametersPanelModel>

#Remarks

The default implementation of IReportParametersPanelClientSideModelGenerator is registered at application startup within the AddDevExpressControls method call. In the controller action, you can get the service from the request services:

C#
public IActionResult Panel(
    [FromQuery] string reportName,
    [FromServices] IReportParametersPanelClientSideModelGenerator clientSideModelGenerator) {
    reportName = string.IsNullOrEmpty(reportName) ? "TestReport" : reportName;
    ReportParametersPanelModel parametersPanelModel =
        clientSideModelGenerator.GetModel(reportName, WebDocumentViewerController.DefaultUri);
    return View("Panel", parametersPanelModel);
}

Note that one of the IReportParametersPanelClientSideModelGenerator.GetModel method parameters is a report name, so the application must have the report name resolution service (IReportProvider or ReportStorageWebExtension) implemented and registered at application startup.

See Also