Back to Devexpress

Standalone Report Parameters Panel - ASP.NET Core Applications

xtrareports-404887-web-reporting-asp-net-core-reporting-standalone-parameters-panel-asp-net-core.md

latest6.2 KB
Original Source

Standalone Report Parameters Panel - ASP.NET Core Applications

  • Jun 05, 2024
  • 3 minutes to read

The Standalone Report Parameters Panel is a component that creates a layout with editors for report parameters. It retrieves information on report parameters from a DevExpress report instance passed from the backend.

Use this component to programmatically create a report, then export or email it without showing a preview to the end user. The component reduces memory usage by eliminating the need to generate report preview and sending it to the client application.

The Standalone Report Parameters Panel component is based on the Parameters Panel of the DevExpress Web Report Viewer component. Public properties and events are similar to the properties and events implemented in the Web Document Viewer component.

View Example: Reporting for ASP.NET Core - Standalone Report Parameters Panel

Standalone Report Parameters Panel Component Settings

Standalone Report Parameters Panel API

Client-Side API

The following types and members implement client-side Standalone Report Parameters Panel functionality:

JSReportParametersPanelA class that triggers events for the Standalone Report Parameters Panel and serves as the sender in callback functions.JSReportParametersPanel.GetParametersModelAllows you to access the report parameters client-side model.JSReportParametersPanel.SerializeParametersStateSerializes parameter information from the Standalone Report Parameters Panel to a JSON string.ParametersPanelModelBaseA base class that defines common properties and methods for client models of report parameters.ParametersPanelStandaloneClient-side model for the Standalone Report Parameters Panel component.

Server API

The component events (callbacks) are defined using ReportParametersPanelClientSideEventsBuilder methods:

Classes related to the server-side model:

IReportParametersPanelClientSideModelGeneratorA class used to generate a client-side model for the Standalone Report Parameters Panel component.ReportParametersPanelModelA class that is the server-side model for the Standalone Report Parameters Panel.

This service allows you to pass a string obtained from the client’s SerializeParametersState method. The return object is a report instance with the applied parameters:

IReportParametersSerializerDefines methods that enable you to deserialize parameters received from the Standalone Report Parameters Panel component and apply parameters to a report instance.

Panel Builder

ParameterPanelFluentBuilderContains methods that allow you to customize the Parameters panel.

Add a Standalone Report Parameters Panel to Your Application

Review the following help topic to configure the Standalone Report Parameters Panel component in your ASP.NET Core application:

Apply the Parameter Values

Review the following help topic to find out how to get parameter values on the server and apply them to the report: