ReportDesignerClientSideEventsBuilder.Preview(Action<ReportDesignerPreviewClientSideEventsBuilder>) Method
Provides access to the ReportDesignerPreviewClientSideEventsBuilder object that allows you to handle the client-side events specific to 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 ReportDesignerClientSideEventsBuilder Preview(
Action<ReportDesignerPreviewClientSideEventsBuilder> configure
)
#Parameters
Name | Type | Description |
---|---|---|
configure | Action<Report |
A Action |
#Returns
Type | Description |
---|---|
Report |
A Report |
#Remarks
The code below illustrates how to access and handle client-side events specific to the Web Report Designer’s Preview.
@{
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.CustomizeElements("customizeElements"); }); } );
}
@designer