Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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.2.JSBasedControls.Common.dll

NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls.Common

#Declaration

[Parameter]
public string OnInitializing { get; set; }

#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:

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