This code sets the page size to 4 using parameters in the IDataView.refresh method.
productView.refresh({ pageSize: 4 });
productView.refresh({ pageSize: 4 });
Name | Description | |
---|---|---|
filter | Default value: null Sets or returns a variant that contains a filter for the data in a recordset. The filter allows you to get records that satisfy a specified criterion. | |
pageIndex | Default value: null Determines the index of the currently displayed page, when the paging feature is enabled. To enable the paging feature, set the allowPaging option to true. | |
pageSize | Determines the number of records to be displayed on a page. To display all records, set the pageSize to 0. | |
sort | Default value: null Indicates one or more field names on which to sort the data. By default, the data is sorted in ascending order. For more information about setting the sorting directions, ascending or descending, refer to ISortDescriptor. |