pageSize

Gets or sets the page size. 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:

    <div id="pager"></div>
    <script type="text/javascript">
    $(function () {
        $("#pager").shieldPager({
            totalItems: 99,
            events: {
	            change: function (e) {
		            alert(e.currentPage);
	            }
            }
        });
    });

    function getCurrentPageNumber() {
       return  $("#pager").swidget().pageSize(); // returns the page size of the pager control    
    }  
    function setCurrentPageNumber() {
        $("#pager").swidget().pageSize(4); // Sets the page size to 4
    } 

    </script>