Wijmo UI for the Web
pageIndex Option
wijmo.grid.wijgrid Namespace > options type : pageIndex Option

Determines the zero-based index of the current page. Use this option to display a specific page of records when using the paging feature.

Default value: 0

Type: number

 

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijgrid("option", "pageIndex");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijgrid("option", "pageIndex", newValue);
        
});
var pageIndex : number;
Example
This example enables paging, sets the number of records per page to 20.
$("#element").wijgrid({ 
    allowPaging: true,
    pageIndex: 1,
    pageSize: 20
});
Remarks

Set allowPaging to true to enable this option. Set pageSize to specify the number records per page.

The Paging sample demonstrates all of the page options.

See Also

Reference

options type
allowPaging Option
pagerSettings Option
pageSize Option
wijgrid jQuery Widget