Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Microsoft.Reporting.WebFormsClient.ReportViewer.reportAreaScrollPosition Property

Gets or sets a Sys.UI.Point object that represents the scroll position of the report area.

NoteNote

To get or set property values for client API properties, you must call property accessor methods that are named with the get_ and set_ prefixes.


var v = $find(viewerId).get_reportAreaScrollPosition();
$find(viewerId).set_reportAreaScrollPosition(position);

Parameters

position

A Sys.UI.Point object that represents the scroll position to set.

A Sys.UI.Point object that represents the current scroll position.

When the Web page is performing a postback or the client-side control is loading content, accessing the methods or properties will cause an exception with the message: "The report or page is being updated. Please wait for the current action to complete." Use the isLoading property to check whether the report or page is being updated and whether you can access the methods and properties.

The following method resets the scroll positions of the report area.

function resetScrollPosition() {
    var viewer = $find(viewerID);
    if (!viewer.get_isLoading())
        viewer.set_reportAreaScrollPosition(new Sys.UI.Point(0, 0));
}
Show:
© 2015 Microsoft