Spread for ASP.NET 8.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetPageCount |
Gets the number of pages.
[JavaScript]
var ret = FpSpread1.GetPageCount();
None
Integer
This method returns the page count. If the page size is 10 and there are 40 rows, the page count would be 4.
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.GetPageCount(); } </script> |