DxDocumentViewer.AutoStartBuild Property
Specifies whether to start building a document automatically before the Document Viewer’s UI is rendered.
Namespace: DevExpress.Blazor.Reporting
Assembly: DevExpress.Blazor.Reporting.v25.1.JSBasedControls.dll
NuGet Package: DevExpress.Blazor.Reporting.JSBasedControls
Declaration
Property Value
Type | Default | Description |
---|---|---|
Boolean | `true` |
|
Remarks
In Blazor Server applications, the Web Document Viewer sends the startBuild
request automatically before the Document Viewer’s UI is rendered (if there is no need to wait for parameter values in the UI). If the report has no visible parameters and you set parameter values in the ParametersInitialized event handler and call the Submit()
method, the report is generated twice.
Set the AutoStartBuild
property to false
to disable automatic document generation:
@page "/documentviewer"
<DxDocumentViewer ReportName="TestReport" AutoStartBuild="false">
<DxDocumentViewerCallbacks ParametersInitialized="viewerCustomization.onParametersInitialized" />
</DxDocumentViewer>