Wijmo UI for the Web
pageSize Field
Determines the number of records to be displayed on a page. To display all records, set the pageSize to 0.
Syntax
Javascript (Usage) 
var instance; // Type: wijmo.data.IShape;
var value; // Type: number
value = instance.pageSize;
Javascript (Specification) 
var pageSize : number;
Example
The Quick Start sample shows a similar implementation using Knockout. To use the property without using KnockOut, use the document ready function as in this example.
$(document).ready(function () {
            var productView = new wijmo.data.ArrayDataView(sourceData());

            $("#demo-grid").wijgrid({ 
                data: productView, 
                allowPaging: true
            });
This example changes the pageSize to 4 or 0 on clicking the buttons.
$("#pageSize0").click(function () {
          productView.pageSize(0);
      });
$("#pageSize4").click(function () {
          productView.pageSize(4);
      });
Browser Compatibility
7
5
5

See Also

Reference

IShape Interface
pageSize Field

 

 


© 2013 All Rights Reserved.

Send comments on this topic.