JavaScript/jQuery List - Paging
Paging properties are set in the DataSource: paginate enables paging; pageSize specifies how many data items a page should contain.
The next page can be rendered when a user scrolls the List down to the bottom, or after a user clicks the More button. Set the pageLoadMode property to specify the mode:
JavaScript
- $(function() {
- $("#listContainer").dxList({
- // ...
- pageLoadMode: "scrollBottom" // or "nextButton"
- });
- });
NOTE
The List renders as many pages as it can fit into its height when the UI component is displayed for the first time and the pageLoadMode is set to "scrollBottom".
Local arrays and remote datasets loaded using the CustomStore in raw mode are only rendered page by page. In other cases, remote datasets are also loaded page by page if the server can partition data.
See Also
- Data Binding: Web API, PHP, MongoDB | OData Service | Custom Sources | JavaScript Array
- List - Localization
Feedback