DxReportDesignerCallbacks.OnInitializing Property
In This Article
“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.2.JSBasedControls.Common.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common
#Declaration
#Property Value
Type | Description |
---|---|
String | The name of a Java |
#Remarks
Use the OnInitializing
callback to patch the initial “get designer model” HTTP request:
javascript
window.ReportingCustomization = {
//passing headers with Fetch API or jQuery AJAX
onReportDesignerInitializing: function (s) {
DevExpress.Analytics.Utils.fetchSetup.fetchSettings = { headers: { HEADER1: 'VALUE1' } };
//DevExpress.Analytics.Utils.ajaxSetup.ajaxSettings = { headers: { HEADER1: 'VALUE1' } };
}
}
razor
<DxReportDesigner ReportName="TestReport" Height="calc(100vh - 130px)" Width="100%">
<DxReportDesignerCallbacks OnInitializing="ReportingCustomization.onReportDesignerInitializing" />
</DxReportDesigner>
See Also