ReportDesignerClientSideEventsBuilder.OnInitializing(String) Method
Allows you to specify a JavaScript function that runs before Document Viewer fetches the View model from the server and before the BeforeRender event.
Namespace: DevExpress.AspNetCore.Reporting.ReportDesigner
Assembly: DevExpress.AspNetCore.Reporting.v24.1.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
Parameters
Name | Type | Description |
---|---|---|
callback | String | The name of a JavaScript function or entire JavaScript function code that runs when the OnInitializing event occurs. |
Returns
Type | Description |
---|---|
ReportDesignerClientSideEventsBuilder | The ReportDesignerClientSideEventsBuilder object that can be used for method chaining. |
Remarks
The OnInitializing
event occurs when the client component is created, before the view model is fetched from the server, and before the BeforeRender
event.
You can handle the OnInitialievent
to patch the initial “get designer model” HTTP request:
onReportDesignerInitializing: function (s) {
s.dx.Analytics.Utils.fetchSetup.fetchSettings = { headers: { HEADER1: 'VALUE1' } };
//s.dx.Analytics.Utils.ajaxSetup.ajaxSettings = { headers: { HEADER1: 'VALUE1' } };
}