page

Gets or sets the current page number. This method is avaiable via the grid's pager proeprty:

$("#grid").shieldGrid({
    dataSource: {
        data: [
            { ID: 1, name: "name1" },
            { ID: 2, name: "name2" },
            { ID: 3, name: "name3" },
            { ID: 4, name: "name4" },
            { ID: 5, name: "name5" },
            { ID: 6, name: "name6" },
            { ID: 7, name: "name7" },
            { ID: 8, name: "name8" },
            { ID: 9, name: "name9" },
            { ID: 10, name: "name10" }
        ]
    },
     paging:  {
        pageSize: 3
    },
    columns: [
        { field: "ID" },
        { field: "name" }
    ]
});
 
function getCurrentPageNumber() {
    return $("#grid").swidget().pager.page();
}  
function setCurrentPageNumber() {
    $("#grid").swidget().pager.page(2); // Page to the second page
}