DxReportDesignerCallbacks Class
Specifies client-side event handler functions for the Report Designer. See DxReportDesignerCallbacks Members for the complete list of events.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v24.2.JSBasedControls.Common.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common
Declaration
Remarks
The DxReportDesignerCallbacks class contains properties that specify JavaScript handler functions for client-side events.
You can define a global JavaScript function in an external script file and add the file reference to the page. The following example handles the BeforeRender event to run the Report Wizard at application startup:
Create a JavaScript file in the project’s wwwroot/js folder. Write the following code:
window.ReportingDesignerCustomization = { onBeforeRender: function(s, e) { s.RunWizard("NewViaReportWizard") } }
Include the script file in the host page:
<script src="~/js/reporting_DesignerCustomization.js"></script>
Set the DxReportDesignerCallbacks.BeforeRender property to the function name:
<DxReportDesigner ReportName="SampleReport" Height="1000px" Width="100%"> <DxReportDesignerCallbacks BeforeRender="ReportingDesignerCustomization.onBeforeRender" /> </DxReportDesigner>