Spread for ASP.NET 9.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetCurrentPageIndex |
Gets the current page index.
[JavaScript]
var ret = FpSpread1.GetCurrentPageIndex();
None
Integer, index of the current page
This method returns the page index of the page that is currently displayed. A page contains the number of rows specified by the PageSize property.
This is a sample that contains the method. On the client side, the script that contains the method would look like this:
JavaScript |
Copy Code
|
---|---|
<script type="text/javascript"> function getHValue() { var ss=document.getElementById("FpSpread1"); var totalRow = ss.GetCurrentPageIndex(); } </script> |