Spread for ASP.NET 7.0 Product Documentation
GetCurrentPageIndex
See Also Support Options
Spread for ASP.NET 7.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > GetCurrentPageIndex

Glossary Item Box

Gets the current page index.

Syntax

[JavaScript]

var ret = FpSpread1.GetCurrentPageIndex();

Parameters

None

Return Type

Integer, index of the current page

Remarks

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.

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.GetCurrentPageIndex();
   }
</SCRIPT>

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.