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

PollingDelay Function

Specifies the wait time needed before a request about the document generation status is sent.

#Declaration

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

#Parameters

Name Type
newVal number

#Returns

Type
number

#Remarks

The PollingDelay parameter allows you to configure polling requests. The value is specified in milliseconds and defines the interval between requests sent by the Document Viewer. The initial value is 300 ms.

You can use the PollingDelay setting to adjust the document generation progress indicator behavior.

You can initialize the PollingDelay 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.