ServerPaging
configurationIf set to true, the data source will leave the data item paging implementation to the remote service. By default, the data source performs paging client-side.
Configure
schema.totalif you setserverPagingtotrue. In addition,pageSizeshould be set no matter if paging is performed client-side or server-side.
The following options are sent to the server when server paging is enabled:
page- The page of data item to return (1means the first page).pageSize- The number of items to return.skip- The number of data items to skip.take- The number of data items to return (the same aspageSize).
The skip and take values are automatically calculated based on the current page and pageSize. This means that a dataSource with page = 3 and pageSize = 20 will generate a request that has skip = 40 and take = 20.
Use the parameterMap option to send the paging options in a different format.
For more information and tips about client and server data operations, refer to the introductory article on the DataSource.
For a runnable example with enabled server paging, you can visit the Grid remote data binding demo.
serverPaging
BooleanDefault: false