Skip to main content
A newer version of this page is available.
All docs
V17.2

ASPxClientReportViewer.PageLoad Event

Occurs on the client side when another report page is loaded into this ASPxClientReportViewer instance.

Namespace: DevExpress.XtraReports.Web.Scripts

Assembly: DevExpress.XtraReports.v17.2.Web.Scripts.dll

Declaration

public event ASPxClientReportViewerPageLoadEventHandler PageLoad

Event Data

The PageLoad event's data class is ASPxClientReportViewerPageLoadEventArgs.

The event data class exposes the following methods:

Method Description
IsFirstPage() Gets a value indicating whether a report page, which is currently loaded into the ASPxClientReportViewer, is the first page of a report.
IsLastPage() Gets a value indicating whether a report page, which is currently loaded into the ASPxClientReportViewer, is the last page of a report.

Remarks

Handle the PageLoad event to perform an action every time a Report Viewer navigates to another report page. For example, if you’re implementing a custom Report Toolbar, you may use the ASPxClientReportViewerPageLoadEventArgs.IsFirstPage and ASPxClientReportViewerPageLoadEventArgs.IsLastPage properties to determine the state of ReportToolbarItemKind.FirstPage, ReportToolbarItemKind.PreviousPage, ReportToolbarItemKind.NextPage and ReportToolbarItemKind.LastPage toolbar buttons. Also, you may obtain the ASPxClientReportViewerPageLoadEventArgs.PageCount and ASPxClientReportViewerPageLoadEventArgs.PageIndex values to show this information in a custom Report Toolbar.

See Also