serverSorting Boolean (default: false)

If set to true, the data source will leave the data item sorting implementation to the remote service. By default, the data source performs sorting client-side.

By default, the sort is sent to the server following jQuery conventions.

For example, the sort { field: "age", dir: "desc" } is sent as:

  • sort[0][field]: age
  • sort[0][dir]: desc

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.

Example - enable server sorting

var dataSource = new{
  transport: {
    /* transport configuration */
  serverSorting: true,
  sort: { field: "age", dir: "desc" }
In this article