pageSize

Gets or sets the page size. This method is avaiable via the grid's pager proeprty. If a parameter is used the page size is set to that number. If the function is used without parameter the pager’s page size is returned:

$("#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.pageSize(); // returns the page size of the pager control    
}  
function setCurrentPageNumber() {
    $("#grid").swidget().pager.pageSize(4); // Sets the page size to 4
}