wijmo.data Namespace > IShape Interface : pageIndex Field |
Default value: null
Determines the index of the currently displayed page, when the paging feature is enabled.
To enable the paging feature, set the allowPaging option to true.
Javascript (Usage) | |
---|---|
var instance; // Type: wijmo.data.IShape; var value; // Type: number value = instance.pageIndex; |
Javascript (Specification) | |
---|---|
|
$(document).ready(function () { var productView = new wijmo.data.ArrayDataView(sourceData()); $("#demo-grid").wijgrid({ data: productView, allowPaging: true });
$("#prevPage").click(function () { productView.pageIndex(productView.pageIndex() - 1); }); $("#nextPage").click(function () { productView.pageIndex(productView.pageIndex() + 1); });