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

TimeOut Function

Specifies the time after which the request for the document generation status times out.

#Declaration

TypeScript
export const TimeOut: DevExpress.Analytics.Internal.IGlobalSubscribableValue<number>

#Parameters

Name Type
newVal number

#Returns

Type
number

#Remarks

The TimeOut parameter allows you to set the getBuildStatus request timeout in milliseconds. The TimeOut value determines how long the viewer should wait for the server response to the getBuildStatus request. The value should be less than your application’s request timeout. Initial value is 105 000 ms.

You can initialize the TimeOut property using the client-side BeforeRender event handler, as the following code snippet illustrates:

js
function Viewer_BeforeRender(s, e) {
    DevExpress.Reporting.Viewer.Settings.PollingDelay(1000); //Set polling delay to 1000ms
    DevExpress.Reporting.Viewer.Settings.TimeOut(45000); //Set timeout to 45000ms
}

For more information, review the following help topic: Document Viewer Lifecycle.