Wijmo UI for the Web
Data and Breeze.js

You can fetch, page, filter, and sort data through Breeze.js. In this sample, the data is fetched by a Breeze DataService:

Breeze Script
Copy Code
function ViewModel(sessionId) {
            var dataService = new breeze.DataService({
                serviceName: "http://demo.componentone.com/aspnet/NorthwindAPI/api/read",
                hasServerMetadata: false
            });
            var ms = new breeze.MetadataStore();
            var productType = new breeze.EntityType({ shortName: "Product" });
            productType.addProperty(new breeze.DataProperty({ name: "Product_ID", isPartOfKey: true }));
            productType.addProperty(new breeze.DataProperty({ name: "Product_Name" }));
            productType.addProperty(new breeze.DataProperty({ name: "Category_ID" }));
            productType.addProperty(new breeze.DataProperty({ name: "Unit_Price" }));
            ms.addEntityType(productType);
 
            this.manager = new breeze.EntityManager({
                dataService: dataService,
                metadataStore: ms
            });
var productView = new wijmo.data.BreezeDataView(new breeze.EntityQuery("Product"), this.manager, {
                pageSize: 10,
                inlineCount: false
            });                 

Note that the BreezeDataView class uses the breeze.EntityQuery to fetch data.

See Also

How To

Reference

 
Support Options