Spread ASP.NET 6.0 Product Documentation
GetPageCount
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetPageCount

Glossary Item Box

Gets the number of pages.

Syntax

[JavaScript]

var ret = FpSpread1.GetPageCount();

Parameters

None

Return Type

Integer

Remarks

This method returns the page count. If the page size is 10 and there are 40 rows, the page count would be 4.

Example

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 language=javascript>
   function getHValue() {
       var ss=document.getElementById("FpSpread1");
       var totalRow = ss.GetPageCount(); 
   }
</SCRIPT>

See Also

GetTotalRowCount | SetValue | Scripting Members

© 2002-2012 GrapeCity, Inc. All Rights Reserved.