Skip to main content
All docs
V25.1
  • 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.v25.1.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:

    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' } };
        }
    }
    
    <DxReportDesigner ReportName="TestReport" Height="calc(100vh - 130px)" Width="100%">
        <DxReportDesignerCallbacks OnInitializing="ReportingCustomization.onReportDesignerInitializing" />
    </DxReportDesigner>
    
    See Also