Query

An universal chainable data query interface object.

Included in: dx.phonejs.js, dx.webappjs.js, dx.chartjs.js, dx.all.js
Type:

Object

To create a Query, call the query(array) or query(url, queryOptions) utility function, depending on the type of storage you access. The Query enables you to execute several methods in a single statement, as it supports method chaining.

JavaScript
var processedArray = DevExpress.data.query(inputArray)
    .filter([ [ "value", ">=", 10 ], "and", [ "value", "<=", 90 ]])
    .sortBy("lastName")
    .thenBy("firstName")
    .select("lastName", "firstName", "value")
    .toArray();

For more information on the Query concept, refer to the Data Layer article.

Methods

This section describes the methods used to access the data associated with the Query.