DxReportDesignerCallbacks.OnInitializing Property
“Specifies the JavaScript function that handles the OnInitializing client-side event and runs before the BeforeRender callback.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v24.1.JSBasedControls.Common.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common
Declaration
Property Value
Type | Description |
---|---|
String | The name of a JavaScript function used to handle the OnInitializing event. |
Remarks
Use the OnInitializing
callback to patch the initial “get designer model” HTTP request:
window.ReportingCustomization = {
//passing headers with jQuery AJAX
onReportDesignerInitializing: function (s) {
s.dx.Analytics.Utils.fetchSetup.fetchSettings = { headers: { HEADER1: 'VALUE1' } };
//s.dx.Analytics.Utils.ajaxSetup.ajaxSettings = { headers: { HEADER1: 'VALUE1' } };
}
}
<DxWasmReportDesigner ReportName="TestReport" Height="calc(100vh - 130px)" Width="100%">
<DxReportDesignerCallbacks OnInitializing="ReportingCustomization.onReportDesignerInitializing" />
See Also