jQuery FilterBuilder - lookup
allowClearing
Specifies whether a user can nullify the lookup values. Set to true only if your data source accepts null values.
dataSource
This option accepts one of the following:
Array of objects or primitives
A JavaScript array that contains plain objects or primitives.DataSource configuration object
A DataSource configuration object. More information about the DataSource and the DevExtreme Data Layer is available in the Data Layer article.Store instance
An ArrayStore, LocalStore, ODataStore, or CustomStore instance.
If the lookup data source contains objects, specify the valueExpr and displayExpr options in addition to the dataSource.
displayExpr
Set this option to the name of a data field that provides displayed values...
displayExpr: "name"
... or to a function that returns the displayed value:
displayExpr: function(item) { // "item" can be null return item && 'ID: ' + item.id + ', Name: ' + item.name; }
Leave this option unspecified or set it to this
if the data source contains primitives.
valueExpr
This field's values are replaced with the displayExpr field's values.