Skip to main content
All docs
V24.1

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

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:

<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).