DevExtreme jQuery/JS - OData Service
Use the ODataStore to bind the TagBox to data an OData service provides.
JavaScript
$(function() {
$("#tagBoxContainer").dxTagBox({
dataSource: new DevExpress.data.ODataStore({
url: "https://js.devexpress.com/Demos/DevAV/odata/Products",
key: "Product_ID"
}),
valueExpr: "Product_Cost",
displayExpr: "Product_Name"
});
});Data kept in the ODataStore can be processed in a DataSource. For example, the DataSource can filter data.
JavaScript
$(function() {
$("#tagBoxContainer").dxTagBox({
dataSource: new DevExpress.data.DataSource({
store: {
type: "odata",
url: "https://js.devexpress.com/Demos/DevAV/odata/Products",
key: "Product_ID"
},
filter: ["Product_Available", "=", true]
}),
valueExpr: "Product_Cost",
displayExpr: "Product_Name"
});
});