ReportDesignerPreviewClientSideEventsBuilder.ParametersSubmitted(String) Method
Sets the name of the JavaScript function or the entire code that will handle the ParametersSubmitted client-side event of the Web Report Designer‘s Preview.
Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly: DevExpress.AspNetCore.Reporting.v24.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
#Declaration
public ReportDesignerPreviewClientSideEventsBuilder ParametersSubmitted(
string callback
)
#Parameters
Name | Type | Description |
---|---|---|
callback | String | The name of a Java |
#Returns
Type | Description |
---|---|
Report |
A Report |
#Remarks
The ParametersSubmitted event fires when all parameter values have been entered in the Parameters panel and the Submit button has been pressed. When implementing a handling function, use the objects passed as parameters. The first parameter passes the event sender that is the ClientReportDesigner object. The second one is an object with the following structure.
ParametersViewModel
A View Model for report parameters.Parameters
Report parameters and their submitted values.
The code sample below demonstrates how to use this event to automatically collapse the Parameters panel after submitting parameter values.
@{
var designer = Html.DevExpress().ReportDesigner("reportDesigner1").Height("1000px")
.Bind(Model.Report)
.DataSources(configureDS => { foreach (var ds in Model.DataSources) { configureDS.Add(ds.Key, ds.Value); } })
.ClientSideEvents(configure => { configure.Preview(configure => { configure.ParametersSubmitted("previewParametersSubmitted"); }); } );
}
@designer