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

MultipageScrollingThrottle Function

Specifies the throttle value (in milliseconds) for page load requests when a user scrolls through a document. Takes effect when the Web Document Viewer operates in multi-page mode.

#Declaration

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

#Parameters

Name Type
newVal number

#Returns

Type
number

#Remarks

The default value of MultipageScrollingThrottle is 150 ms. The following code snippet changes the value to 500 ms:

cshtml
<script>
    function onBeforeRender(s, e) {
        DevExpress.Reporting.Viewer.Settings.MultipageScrollingThrottle(500); 
    }
</script>
@{
    var viewerRender = Html.DevExpress().WebDocumentViewer("DocumentViewer")
        .Height("100%")
        .ClientSideEvents(configure => configure.BeforeRender("onBeforeRender"))
        .Bind(Model.ViewerModelToBind);
    @viewerRender.RenderHtml()
}

The lower the throttle value, the less lag you experience when scrolling through the report (due to the getPage requests being sent to the server more often).